% 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) %>