package html import "fmt" import "go.jolheiser.com/ugit/internal/git" type RepoRefsContext struct { BaseContext RepoHeaderComponentContext Branches []string Tags []git.Tag } templ RepoRefs(rrc RepoRefsContext) { @base(rrc.BaseContext) { @repoHeaderComponent(rrc.RepoHeaderComponentContext) if len(rrc.Branches) > 0 {

Branches

for _, branch := range rrc.Branches {
{ branch }
tree{ " " }log
}
} if len(rrc.Tags) > 0 {

Tags

for _, tag := range rrc.Tags {
{ tag.Name }
tree{ " " }log
if tag.Signature != "" {
Signature{ tag.Signature }
} if tag.Annotation != "" {
{ tag.Annotation }
} }
} } }