From 0b97866be3a15f64170673af9813b39cbc585db5 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sat, 4 Jun 2022 15:12:24 -0700 Subject: archive page works --- views/partials/post_nav.html | 12 ++++++------ views/partials/top.html | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'views/partials') 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 @@ - -
  • [Top]
  • +{{ if ne .ReturnTo "catalog" }} +
  • [Catalog]
  • +{{ end }} +{{ if and (ne .ReturnTo "archive") (showArchive .Board.Actor) }} +
  • [Archive]
  • +{{ end }}
  • [Refresh]
  • diff --git a/views/partials/top.html b/views/partials/top.html index 6e3bc4b..dddb206 100644 --- a/views/partials/top.html +++ b/views/partials/top.html @@ -3,9 +3,9 @@

    {{ .Board.Summary }}

    {{ $len := len .Posts }} {{ if eq $len 0 }} - {{ if .Board.InReplyTo }} + {{ if eq .PostType "reply" }} - {{ else }} + {{ else if eq .PostType "new" }} {{ end }}
    -- cgit v1.2.3