|
|
@ -85,26 +85,28 @@ if (contest) { |
|
|
|
<% } %> |
|
|
|
<% } %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="ui large labels" style="float: right; vertical-align: middle"> |
|
|
|
<div class="ui large labels" style="float: right; vertical-align: middle"> |
|
|
|
<div class="ui basic image label" style="font-size: 1.1em; margin-right: 0;"> |
|
|
|
<div class="ui basic image label" style="font-size: 1.1em; margin-right: 0.3em;"> |
|
|
|
|
|
|
|
<% if (problem.is_anonymous) { %> |
|
|
|
|
|
|
|
<img src="<%= syzoj.utils.gravatar('', 64) %>"> |
|
|
|
|
|
|
|
<a>匿名用户</a> |
|
|
|
|
|
|
|
<% } else { %> |
|
|
|
<img src="<%= syzoj.utils.gravatar(problem.user.email, 64) %>"> |
|
|
|
<img src="<%= syzoj.utils.gravatar(problem.user.email, 64) %>"> |
|
|
|
<a href="<%= syzoj.utils.makeUrl(['user', problem.user_id]) %>"><%= problem.user.username %></a> |
|
|
|
<a href="<%= syzoj.utils.makeUrl(['user', problem.user_id]) %>"><%= problem.user.username %></a> |
|
|
|
|
|
|
|
<% } %> |
|
|
|
<div class="detail">上传</div> |
|
|
|
<div class="detail">上传</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<% if (problem.is_public) { %> |
|
|
|
<% if (problem.is_public) { %> |
|
|
|
|
|
|
|
<div class="ui basic image label" style="font-size: 1.1em; margin-right: <% if (problem.allowedEdit || problem.allowedManage) { %>0.3em<% } else { %>0<% } %>;"> |
|
|
|
<% if (problem.publicizer) { %> |
|
|
|
<% if (problem.publicizer) { %> |
|
|
|
<div class="ui basic image label" style="font-size: 1.1em; margin-left: 0.3em; margin-right: 0;"> |
|
|
|
|
|
|
|
<img src="<%= syzoj.utils.gravatar(problem.publicizer.email, 64) %>"> |
|
|
|
<img src="<%= syzoj.utils.gravatar(problem.publicizer.email, 64) %>"> |
|
|
|
<a href="<%= syzoj.utils.makeUrl(['user', problem.publicizer_id]) %>"><%= problem.publicizer.username %></a> |
|
|
|
<a href="<%= syzoj.utils.makeUrl(['user', problem.publicizer_id]) %>"><%= problem.publicizer.username %></a> |
|
|
|
<div class="detail">公开</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<% } else { %> |
|
|
|
<% } else { %> |
|
|
|
<div class="ui basic image label" style="font-size: 1.1em; margin-left: 0.3em; margin-right: 0;"> |
|
|
|
|
|
|
|
<img src="<%= syzoj.utils.gravatar('', 64) %>"> |
|
|
|
<img src="<%= syzoj.utils.gravatar('', 64) %>"> |
|
|
|
<a>LibreOJ 管理员</a> |
|
|
|
<a>LibreOJ 管理员</a> |
|
|
|
|
|
|
|
<% } %> |
|
|
|
<div class="detail">公开</div> |
|
|
|
<div class="detail">公开</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<% } %> |
|
|
|
<% } %> |
|
|
|
<% } %> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<% } %> |
|
|
|
<% } %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|