From 25829d2d0e379c323b8f2ae6e7c2aad7548f0a30 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sat, 18 Jun 2022 13:57:30 -0700 Subject: sticky and lock implemented --- views/partials/top.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'views/partials/top.html') diff --git a/views/partials/top.html b/views/partials/top.html index 73da840..2a5c16b 100644 --- a/views/partials/top.html +++ b/views/partials/top.html @@ -4,8 +4,10 @@ {{ $len := len .Posts }} {{ if eq $len 0 }} {{ if eq .PostType "reply" }} + {{ if eq (index .Posts 0).Locked false }} - {{ else if eq .PostType "new" }} + {{ end }} + {{ else if and (eq .PostType "new") }} {{ end }}
@@ -60,7 +62,9 @@ {{ if eq (index .Posts 0).Type "Note" }} {{ if .Board.InReplyTo }} + {{ if eq (index .Posts 0).Locked false }} + {{ end }} {{ else }} {{ end }} -- cgit v1.2.3