You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.7 KiB
38 lines
1.7 KiB
8 years ago
|
<% include util %>
|
||
8 years ago
|
<td><a href="<%= syzoj.utils.makeUrl(['submission', judge.id]) %>">#<%= judge.id %></a></td>
|
||
8 years ago
|
<td><a href="<%= syzoj.utils.makeUrl(['problem', judge.problem_id]) %>">#<%= judge.problem_id %>. <%= judge.problem.title %></a></td>
|
||
|
<% if (!judge.hidden) { %>
|
||
8 years ago
|
<td><a href="<%= syzoj.utils.makeUrl(['submission', judge.id]) %>">
|
||
8 years ago
|
<span class="status <%= getStatusMeta(judge.status).toLowerCase().split(' ').join('_') %>">
|
||
|
<i class="<%= icon[getStatusMeta(judge.status)] || 'remove' %> icon"></i>
|
||
|
<%= judge.status %>
|
||
|
</span>
|
||
|
</a></td>
|
||
8 years ago
|
<td><a href="<%= syzoj.utils.makeUrl(['submission', judge.id]) %>"><span class="score score_<%= parseInt(judge.result.score / 10) || 0 %>"><%= judge.result.score %></span></a></td>
|
||
8 years ago
|
<td><%= judge.result.total_time %> ms</td>
|
||
8 years ago
|
<td><%= parseInt(judge.result.max_memory) || 0 %> K</td>
|
||
8 years ago
|
<td><a href="<%= syzoj.utils.makeUrl(['submission', judge.id]) %>"><%= syzoj.config.languages[judge.language].show %></a> / <%= syzoj.utils.formatSize(judge.code.length) %></td>
|
||
8 years ago
|
<% } else { %>
|
||
|
<td>隐藏</td>
|
||
|
<td>隐藏</td>
|
||
|
<td>隐藏</td>
|
||
|
<td>隐藏</td>
|
||
8 years ago
|
<td>隐藏</td>
|
||
8 years ago
|
<% } %>
|
||
|
<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>
|
||
|
<% if (isPending(judge.status)) { %>
|
||
|
<script>
|
||
|
function update_judge_<%= judge.id %>() {
|
||
|
setTimeout(function () {
|
||
8 years ago
|
$.get('/submissions/<%= judge.id %>/ajax', function (data) {
|
||
|
var e = $('#submissions_<%= judge.id %>');
|
||
8 years ago
|
if (e.html() != data) e.html(data);
|
||
|
else update_judge_<%= judge.id %>();
|
||
|
});
|
||
|
}, 500);
|
||
|
}
|
||
|
update_judge_<%= judge.id %>();
|
||
|
</script>
|
||
|
<% } %>
|