diff --git a/views/article.ejs b/views/article.ejs index 4d6a7e9..a974e8e 100644 --- a/views/article.ejs +++ b/views/article.ejs @@ -8,8 +8,7 @@

<%= article.title %>

- <%= article.user.username %> - <% if (article.user.nameplate) { %><%- article.user.nameplate %><% } %> 于 <%= syzoj.utils.formatDate(article.public_time) %> 发表,<%= syzoj.utils.formatDate(article.update_time) %> 最后更新 + <%= article.user.username %><% if (article.user.nameplate) { %><%- article.user.nameplate %><% } %> 于 <%= syzoj.utils.formatDate(article.public_time) %> 发表,<%= syzoj.utils.formatDate(article.update_time) %> 最后更新 <% if (article.allowedEdit) { %> 删除文章 编辑文章 @@ -27,7 +26,7 @@

- <%= comment.user.username %> + <%= comment.user.username %><% if (comment.user.nameplate) { %><%- comment.user.nameplate %><% } %> diff --git a/views/contest_ranklist.ejs b/views/contest_ranklist.ejs index 954eeac..4f349f8 100644 --- a/views/contest_ranklist.ejs +++ b/views/contest_ranklist.ejs @@ -40,11 +40,7 @@ <%= i %>
- <%= item.user.username %> - <% if (item.user.nameplate) { %> - <%= item.user.nameplate %> - <% } %> - + <%= item.user.username %><% if (item.user.nameplate) { %><%- item.user.nameplate %><% } %> <% for (let problem of problems) { %> <% if (item.player.score_details[problem.id]) { %> diff --git a/views/discussion.ejs b/views/discussion.ejs index 184d103..f2bcf45 100644 --- a/views/discussion.ejs +++ b/views/discussion.ejs @@ -20,7 +20,7 @@ <% for (let article of articles) { %> <%= article.title %> - <%= article.user.username %> + <%= article.user.username %><% if (article.user.nameplate) { %><%- article.user.nameplate %><% } %> <%= syzoj.utils.formatDate(article.public_time) %> <% } %> diff --git a/views/header.ejs b/views/header.ejs index a51b4d0..aae1cdf 100644 --- a/views/header.ejs +++ b/views/header.ejs @@ -26,7 +26,7 @@ <% if (user) { %>