feat(web/panettone): Add issue subject to page title

Fixes: #8
Change-Id: I5513018e6d4908881a3522a24764729f2638b521
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1408
Tested-by: BuildkiteCI
Reviewed-by: kanepyork <rikingcoding@gmail.com>
This commit is contained in:
Griffin Smith 2020-07-23 19:28:39 -04:00 committed by glittershark
parent add588e634
commit fba4d145f8

View file

@ -421,7 +421,10 @@ updated issue"
(defroute show-issue ("/issues/:id" :decorators (@auth))
(&path (id 'integer))
(handler-case
(render/issue (get-issue *p-system* id))
(let* ((issue (get-issue *p-system* id))
(*title* (format nil "~A | Panettone"
(subject issue))))
(render/issue issue))
(issue-not-found (_)
(render/not-found "Issue"))))