@@ -71,10 +71,13 @@ func (e Event) icon() *html.Node { icon = octiconssvg.GitMerge() color, backgroundColor = "#fff", "#6f42c1" case changes.ApprovedEvent: icon = octiconssvg.Check() color, backgroundColor = "#fff", "#6cc644" case changes.ChangesRequestedEvent: icon = octiconssvg.X() color, backgroundColor = "#fff", "#bd2c00" default: icon = octiconssvg.PrimitiveDot() } return &html.Node{ Type: html.ElementNode, Data: atom.Span.String(), @@ -125,10 +128,12 @@ func (e Event) text() []*html.Node { ns = append(ns, htmlg.Text(" into ")) ns = append(ns, htmlg.Strong(p.RefName)) // TODO: Code{}. return ns case changes.ApprovedEvent: return []*html.Node{htmlg.Text("approved these changes")} case changes.ChangesRequestedEvent: return []*html.Node{htmlg.Text("requested changes")} default: return []*html.Node{htmlg.Text("unknown event")} // TODO: See if this is optimal. } }