Lock and pin icons

This commit is contained in:
Dominic Ferrando
2025-04-24 19:14:27 -04:00
parent 2642e28c7b
commit b5a0f58afd
5 changed files with 59 additions and 8 deletions
+8
View File
@@ -93,6 +93,14 @@ templ PostOriginal(post database.Post, thread database.Thread) {
/>
<video controls style="display: none;" class="post-vid"></video>
<header style="margin-top: 10px;" class="post-header">
<span style="float: left;">
if thread.Locked {
<img src="/static/media/icons/lock.svg" alt="Locked" class="icon"/>
}
if thread.Pinned {
<img src="/static/media/icons/pin.svg" alt="Pinned" class="icon"/>
}
</span>
<h1 class="thread-subject">{ thread.Subject } -</h1>
<span class="post-author">{ post.Author }</span>
<span class="post-date">{ post.CreatedAt.Format("01/02/2006") }</span>