<% this.title = article.title + ' - 帖子'; %> <% include header %>

<%= article.title %>

<%= article.user.username %><% if (article.user.nameplate) { %><%- article.user.nameplate %><% } %> <%= syzoj.utils.formatDate(article.public_time) %> <% if(user) {%> 回复 <%}%> <% if (article.public_time !== article.update_time) { %> <%= syzoj.utils.formatDate(article.update_time) %><% } %> <% if (article.allowedEdit) { %> 编辑 删除

<% } %>

<%- article.content %>
<% if (comments.length) { %>

共 <%= commentsCount %> 条回复

<% for (let comment of comments) { %>
<%= comment.user.username %><% if (comment.user.nameplate) { %><%- comment.user.nameplate %><% } %>
<%- comment.content %>
<% if (comment.allowedEdit) { %> <% } else { %>
<% if(user){%> 回复 <%}%>
<%}%>
<% for (let reply of comment.reply) { %>
<%= reply.reply_user.username %><% if (reply.reply_user.nameplate) { %><%- reply.reply_user.nameplate %><% } %>
<%- reply.content %>
<% if (comment.allowedEdit) { %> <% } %>
<% } %> <% } %>
<% include page %>
<% } %> <% if (article.allowedComment) { %> <% include monaco-editor %> <% } %>
<% include footer %>