aboutsummaryrefslogtreecommitdiff
path: root/views/partials/post_nav.html
diff options
context:
space:
mode:
authorFChannel <>2022-06-04 15:12:24 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commit0b97866be3a15f64170673af9813b39cbc585db5 (patch)
tree0949491e1ccccb9d3861db2553c72a4794591903 /views/partials/post_nav.html
parent60752f58ab0eade30e88c1e98ad530a4b151586e (diff)
archive page works
Diffstat (limited to 'views/partials/post_nav.html')
-rw-r--r--views/partials/post_nav.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/views/partials/post_nav.html b/views/partials/post_nav.html
index eab52d1..d999c35 100644
--- a/views/partials/post_nav.html
+++ b/views/partials/post_nav.html
@@ -1,7 +1,7 @@
-<!-- TODO: showArchive function needs to be fixed
- \{\{ if showArchive }}
- <li>[<a href="/{{ .Board.Name }}/archive">Archive</a>]</li>
- \{\{ end }}
- -->
-<li>[<a href="#top" id="bottom">Top</a>]</li>
+{{ if ne .ReturnTo "catalog" }}
+<li>[<a href="/{{ .Board.Name }}/catalog">Catalog</a>]</li>
+{{ end }}
+{{ if and (ne .ReturnTo "archive") (showArchive .Board.Actor) }}
+<li>[<a href="/{{ .Board.Name }}/archive">Archive</a>]</li>
+{{ end }}
<li>[<a href="javascript:location.reload()">Refresh</a>]</li>