Browse Source

Add language column on judge state and judge detail

pull/6/head
Menci 8 years ago
parent
commit
ff50e4cc75
  1. 3
      views/judge_detail_item.ejs
  2. 1
      views/judge_state.ejs
  3. 2
      views/judge_state_item.ejs

3
views/judge_detail_item.ejs

@ -8,6 +8,7 @@
<th>分数</th>
<th>总时间</th>
<th>内存</th>
<th>语言</th>
<th>提交者</th>
<th>提交时间</th>
</tr>
@ -24,11 +25,13 @@
<td class="score score_<%= parseInt(judge.result.score / 10) || 0 %>"><%= judge.result.score %></td>
<td><%= judge.result.total_time %> ms</td>
<td><%= judge.result.max_memory %> KiB</td>
<td><%= judge.language %></td>
<% } else { %>
<td>隐藏</td>
<td>隐藏</td>
<td>隐藏</td>
<td>隐藏</td>
<td>隐藏</td>
<% } %>
<td><a href="<%= syzoj.utils.makeUrl(['user', judge.user_id]) %>"><%= judge.user.username %></a><% if (judge.user.nameplate) { %><%- judge.user.nameplate %><% } %></td>
<td><%= syzoj.utils.formatDate(judge.submit_time) %></td>

1
views/judge_state.ejs

@ -24,6 +24,7 @@
<th>分数</th>
<th>总时间</th>
<th>内存</th>
<th>语言</th>
<th>提交者</th>
<th>提交时间</th>
<th>代码</th>

2
views/judge_state_item.ejs

@ -11,11 +11,13 @@
<td><a href="<%= syzoj.utils.makeUrl(['judge_detail', judge.id]) %>"><span class="score score_<%= parseInt(judge.result.score / 10) || 0 %>"><%= judge.result.score %></span></a></td>
<td><%= judge.result.total_time %> ms</td>
<td><%= judge.result.max_memory %> KiB</td>
<td><%= judge.language %></td>
<% } else { %>
<td>隐藏</td>
<td>隐藏</td>
<td>隐藏</td>
<td>隐藏</td>
<td>隐藏</td>
<% } %>
<td><a href="<%= syzoj.utils.makeUrl(['user', judge.user_id]) %>"><%= judge.user.username %></a><% if (judge.user.nameplate) { %><%- judge.user.nameplate %><% } %></td>
<td><%= syzoj.utils.formatDate(judge.submit_time) %></td>

Loading…
Cancel
Save