add user signatures

This commit is contained in:
2025-05-24 17:28:07 +03:00
parent fbe582ccbc
commit ccb2819b01
10 changed files with 46 additions and 7 deletions

View File

@ -58,7 +58,15 @@
</div>
<div class="post-content">
<% if not edit then %>
<div class="post-inner">
<%- post.content %>
</div>
<% if render_sig and #post.signature_rendered > 0 then %>
<div class="signature-container">
<hr>
<%- post.signature_rendered %>
</div>
<% end %>
<% else %>
<% render("views.common.babycode-editor", {
cancel_url = post_url,

View File

@ -8,7 +8,7 @@
<span>Posted in <a href="<%= url_for("topic", {slug = topic.slug}) %>"><%= topic.name %></a></span>
</nav>
<% for i, post in ipairs(posts) do %>
<% render("views.threads.post", {post = post, is_latest = i == #posts}) %>
<% render("views.threads.post", {post = post, render_sig = true, is_latest = i == #posts}) %>
<% end %>
</main>