some things

This commit is contained in:
2025-05-19 09:12:59 +03:00
parent 5ec458702a
commit 85b1319c79
6 changed files with 20 additions and 6 deletions

View File

@ -2,6 +2,14 @@
<h2><%= topic.description %></h2>
<% if #threads_list == 0 then %>
<p>There are no threads in this topic.</p>
<% else %>
<ul>
<% for _, thread in ipairs(threads_list) do %>
<li>
<a href="<%= url_for("thread", {slug = thread.slug}) %>"><%= thread.title %></a><% if ntob(thread.is_stickied) then %> - pinned<% end %>
</li>
<% end %>
</ul>
<% end %>
<% if thread_create_error == ThreadCreateError.OK then %>