feat(web/panettone): Display issue history

Display the history of an issue (which currently is just opening and
closing) inline with the issue's comments on the issue show page

Change-Id: Id167bceef765cb4c24e86983d1dcd6624d0e5956
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1497
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
Griffin Smith 2020-07-28 18:29:30 -04:00 committed by glittershark
parent 8e7ba41a34
commit 94796399e2
6 changed files with 94 additions and 35 deletions

View file

@ -64,8 +64,9 @@
(.comment-count
:color ,color/gray)))
(defparameter comment-styles
`((.issue-comments
(defparameter issue-history-styles
`((.issue-history
:list-style "none"
:border-top "1px" "solid" ,color/gray
:padding-top "1rem"
:padding-left "2rem"
@ -75,12 +76,15 @@
:margin 0
:padding-top "1rem")
(.comment
((:or .comment .event)
:padding-top "1rem"
:padding-bottom "1rem"
:border-bottom "1px" "solid" ,color/gray
(p :margin 0)))))
(p :margin 0))
(.event
:color ,color/gray))))
(defparameter form-styles
`(((:or (:and input (:or (:= type "text")
@ -129,7 +133,7 @@
`(,@form-styles
,@issue-list-styles
,@issue-styles
,@comment-styles
,@issue-history-styles
(body
:font-family "sans-serif"