about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-07-24T00·24-0400
committerglittershark <grfn@gws.fyi>2020-07-24T15·50+0000
commit156c68698b4f0a153dce3c3027c3de7a980aeaee (patch)
tree993ca261284d69ee5507249c2f3e6031cf949337
parented8fed5baab5f06beb5bc85b414dff58a119b7b3 (diff)
feat(web/panettone): Add "All Issues" link on issue page r/1453
This was something that was complained about verbally - if someone gets
a link to an issue directly it's nice to be able to click on a link to
view all issues.

Change-Id: Id4e0c7208edc51980c6577bb10e6c6dea1e7ab55
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1412
Tested-by: BuildkiteCI
Reviewed-by: kanepyork <rikingcoding@gmail.com>
-rw-r--r--web/panettone/src/css.lisp10
-rw-r--r--web/panettone/src/panettone.lisp4
2 files changed, 13 insertions, 1 deletions
diff --git a/web/panettone/src/css.lisp b/web/panettone/src/css.lisp
index 8cf8509a71ef..f256e8e8f6ce 100644
--- a/web/panettone/src/css.lisp
+++ b/web/panettone/src/css.lisp
@@ -144,6 +144,16 @@
       :color ,color/gray
       :font-size "1.5rem"))
 
+    (nav
+     :display :flex
+     :color ,color/gray)
+
+    (footer
+     :border-top "1px" "solid" ,color/gray
+     :padding-top "1rem"
+     :margin-top "2rem"
+     :color ,color/gray)
+
     ,@(button '.new-issue)
 
     (.alert
diff --git a/web/panettone/src/panettone.lisp b/web/panettone/src/panettone.lisp
index c49dc63c6c35..9cb0a8ef56d2 100644
--- a/web/panettone/src/panettone.lisp
+++ b/web/panettone/src/panettone.lisp
@@ -365,7 +365,9 @@ updated issue"
                          (who:esc (displayname author))
                          " at "
                          (who:esc (format-dottime (created-at comment)))))))))
-           (render/new-comment (get-id issue)))))))))
+           (render/new-comment (get-id issue))))))
+      (:footer
+       (:nav (:a :href "/" "All Issues"))))))
 
 (defun render/not-found (entity-type)
   (render