diff options
Diffstat (limited to 'views/partials/post_nav.html')
-rw-r--r-- | views/partials/post_nav.html | 12 |
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> |