@@ -64,10 +64,12 @@ func (e Event) icon() *html.Node { icon = octiconssvg.Tag() case issues.CommentDeleted: icon = octiconssvg.X() case "ReviewRequestedEvent": icon = octiconssvg.Eye() case "ReviewRequestRemovedEvent": icon = octiconssvg.X() default: icon = octiconssvg.PrimitiveDot() } return &html.Node{ Type: html.ElementNode, Data: atom.Span.String(), @@ -102,10 +104,15 @@ func (e Event) text() []*html.Node { case "ReviewRequestedEvent": ns := []*html.Node{htmlg.Text("requested a review from ")} ns = append(ns, Avatar{User: e.Event.RequestedReviewer, Size: 16, Inline: true}.Render()...) ns = append(ns, User{e.Event.RequestedReviewer}.Render()...) return ns case "ReviewRequestRemovedEvent": ns := []*html.Node{htmlg.Text("removed the review request from ")} ns = append(ns, Avatar{User: e.Event.RequestedReviewer, Size: 16, Inline: true}.Render()...) ns = append(ns, User{e.Event.RequestedReviewer}.Render()...) return ns default: return []*html.Node{htmlg.Text(string(e.Event.Type))} } }