about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-07-23T23·28-0400
committerglittershark <grfn@gws.fyi>2020-07-24T01·01+0000
commitfba4d145f8e8945e9fd2438e14075f3945da9fe3 (patch)
tree26b9026abaa59ee38ca360a640ae5ce8919056db
parentadd588e634a3ddd798710e9f95fec271903db441 (diff)
feat(web/panettone): Add issue subject to page title r/1450
Fixes: #8
Change-Id: I5513018e6d4908881a3522a24764729f2638b521
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1408
Tested-by: BuildkiteCI
Reviewed-by: kanepyork <rikingcoding@gmail.com>
-rw-r--r--web/panettone/src/panettone.lisp5
1 files changed, 4 insertions, 1 deletions
diff --git a/web/panettone/src/panettone.lisp b/web/panettone/src/panettone.lisp
index 87c7b0659e35..026d47825f37 100644
--- a/web/panettone/src/panettone.lisp
+++ b/web/panettone/src/panettone.lisp
@@ -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"))))