Browse Source

Fix score display on contest ranklist

master
Pisces000221 7 years ago
parent
commit
3fa5d25c78
  1. 8
      views/contest_ranklist.ejs

8
views/contest_ranklist.ejs

@ -122,9 +122,15 @@
</td> </td>
<% } else if (contest.type === 'noi' || contest.type === 'ioi') { %> <% } else if (contest.type === 'noi' || contest.type === 'ioi') { %>
<a href="<%= syzoj.utils.makeUrl(['submission', item.player.score_details[problem.id].judge_id]) %>"> <a href="<%= syzoj.utils.makeUrl(['submission', item.player.score_details[problem.id].judge_id]) %>">
<% if (item.player.score != null) { %>
<span class="score score_<%= parseInt((item.player.score_details[problem.id].score / 10) || 0) %>"> <span class="score score_<%= parseInt((item.player.score_details[problem.id].score / 10) || 0) %>">
<%= item.player.score_details[problem.id].score %> <%= Math.round(item.player.score) %>
</span> </span>
<% } else { %>
<span class="status compile_error">
0
</span>
<% } %>
</a> </a>
<div class="submit_time"> <div class="submit_time">
<%= syzoj.utils.formatTime(item.player.score_details[problem.id].judge_state.submit_time - contest.start_time) %> <%= syzoj.utils.formatTime(item.player.score_details[problem.id].judge_state.submit_time - contest.start_time) %>

Loading…
Cancel
Save