<% if infobox then %> <% render("views.common.infobox", infobox) %> <% end %> <% local is_locked = ntob(topic.is_locked) %> <% if is_locked then -%> <% render("views.common.infobox", {kind = constants.InfoboxKind.LOCK, msg = "This topic is locked. Only moderators can create new threads."}) %> <% end -%> <% if #threads_list == 0 then %>

There are no threads in this topic.

<% else %> <% for _, thread in ipairs(threads_list) do %> <% local is_stickied = ntob(thread.is_stickied) %> <% local thread_is_locked = ntob(thread.is_locked) %>
<% if is_stickied then -%> <% render("svg-icons.sticky") %> Stickied <% end -%>
"><%= thread.title %> • Started by ><%= thread.started_by %> on <%= os.date("%c", thread.created_at) %> Latest post by "><%= thread.latest_post_username %> ">on <%= os.date("%c", thread.latest_post_created_at) %>: <%- thread.latest_post_content %>
<% if thread_is_locked then -%> <% render("svg-icons.lock") %> Locked <% end -%>
<% end %> <% end %>