package html import "fmt" type RepoHeaderComponentContext struct { Name string Ref string Description string CloneURL string Tags []string } templ repoHeaderComponent(rhcc RepoHeaderComponentContext) {
{ rhcc.Name } if rhcc.Ref != "" { { " " } { "@" + rhcc.Ref } } { " - " } refs { " - " } log { " - " }
{ " - " }
{ fmt.Sprintf("%s/%s.git", rhcc.CloneURL, rhcc.Name) }
for _, tag := range rhcc.Tags { { tag } }
{ rhcc.Description }
}