diff options
author | FChannel <> | 2022-06-18 13:57:30 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | 25829d2d0e379c323b8f2ae6e7c2aad7548f0a30 (patch) | |
tree | c828eb5bb04ce04141c717c26b637a59b32ab979 /views/partials/top.html | |
parent | f3d1683d6562afb30522afb98fb3a22456473275 (diff) |
sticky and lock implemented
Diffstat (limited to 'views/partials/top.html')
-rw-r--r-- | views/partials/top.html | 6 |
1 files changed, 5 insertions, 1 deletions
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 }} <h3 id="newpostbtn" state="0" style="display: none; margin-bottom:100px;">[<a href="javascript:startNewPost()">Post a Reply</a>]</h3> - {{ else if eq .PostType "new" }} + {{ end }} + {{ else if and (eq .PostType "new") }} <h3 id="newpostbtn" state="0" style="display: none; margin-bottom:100px;">[<a href="javascript:startNewPost()">Start a New Thread</a>]</h3> {{ end }} <!-- end if inreplyto--> <div id="newpost"> @@ -60,7 +62,9 @@ {{ if eq (index .Posts 0).Type "Note" }} {{ if .Board.InReplyTo }} + {{ if eq (index .Posts 0).Locked false }} <h3 id="newpostbtn" state="0" style="text-align: center; margin-top: 80px; display: none; margin-bottom:100px;">[<a href="javascript:startNewPost()">Post a Reply</a>]</h3> + {{ end }} {{ else }} <h3 id="newpostbtn" state="0" style="text-align: center; margin-top: 80px; display: none; margin-bottom:100px;">[<a href="javascript:startNewPost()">Start a New Thread</a>]</h3> {{ end }} <!-- end if inreplyto--> |