package html import "fmt" type RepoHeaderComponentContext struct { Name string Ref string Description string CloneURL string } templ repoHeaderComponent(rhcc RepoHeaderComponentContext) {
{ rhcc.Name } if rhcc.Ref != "" { { " " } { "@" + rhcc.Ref } } { " - " } refs { " - " } log { " - " } search { " - " }
{ fmt.Sprintf("%s/%s.git", rhcc.CloneURL, rhcc.Name) }
{ rhcc.Description }
}