0 ac 的不显示排名;增加某个人某个题的提交页面

This commit is contained in:
virusdefender
2015-10-24 17:00:37 +08:00
parent 336cb8b79d
commit fb892e6ab6
2 changed files with 6 additions and 2 deletions

View File

@@ -40,7 +40,7 @@
<th class="text-center">用时 + 罚时</th>
{% for item in contest_problems %}
<th class="text-center">
<a href="/contest/{{ contest.id }}/problem/{{ item.id }}/">{{ item.sort_index }}</a>
<a href="/contest/{{ contest.id }}/submissions/?problem_id={{ item.id }}">{{ item.sort_index }}</a>
</th>
{% endfor %}
</tr>
@@ -48,7 +48,7 @@
<tbody class="rank">
{% for item in rank %}
<tr>
<th scope="row">{{ forloop.counter|add:paging_info.offset}}</th>
<th scope="row">{% if item.total_ac_number %}{{ forloop.counter|add:paging_info.offset}}{% else %}-{% endif %}</th>
<td>
<a href="/contest/{{ contest.id }}/submissions/?user_id={{ item.user__id }}">
{{ item.user__username }}