Browse Source

Display a slash when a problem has no submission.

pull/6/head
t123yh 7 years ago
parent
commit
2807486857
  1. 2
      views/problems.ejs

2
views/problems.ejs

@ -142,7 +142,7 @@ if (typeof tags !== 'undefined') tagIDs = tags.map(x => x.id);
</td>
<td><%= problem.ac_num %></td>
<td><%= problem.submit_num %></td>
<td><%= ((problem.ac_num / problem.submit_num * 100) || 0).toFixed(2) %>%</td>
<td><%= problem.submit_num != 0 ? (((problem.ac_num / problem.submit_num * 100) || 0).toFixed(2) + '%') : '-' %></td>
</tr>
<% } %>
<% } %>

Loading…
Cancel
Save