Fix ioi16
This commit is contained in:
parent
8f15fc8f65
commit
e10a8aca5c
1 changed files with 9 additions and 2 deletions
|
@ -3,13 +3,15 @@
|
||||||
{% include "problem/left-sidebar.html" %}
|
{% include "problem/left-sidebar.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% set in_ioi16 = request.in_contest_mode and request.participation.contest.format_name == "ioi16" %}
|
||||||
|
|
||||||
{% block middle_content %}
|
{% block middle_content %}
|
||||||
<div id="content-left" class="problems">
|
<div id="content-left" class="problems">
|
||||||
<table id="problem-table" class="table striped">
|
<table id="problem-table" class="table striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
{% if request.in_contest_mode %}
|
{% if request.in_contest_mode %}
|
||||||
{% if request.user.is_authenticated %}
|
{% if request.user.is_authenticated and not in_ioi16 %}
|
||||||
<th class="solved"><i class="fa fa-check"></i></th>
|
<th class="solved"><i class="fa fa-check"></i></th>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<th class="problem">{{ _('Problem') }}</th>
|
<th class="problem">{{ _('Problem') }}</th>
|
||||||
|
@ -18,7 +20,9 @@
|
||||||
<th>{{ _('Types') }}</th>
|
<th>{{ _('Types') }}</th>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<th class="points">{{ _('Points') }}</th>
|
<th class="points">{{ _('Points') }}</th>
|
||||||
|
{% if not in_ioi16 %}
|
||||||
<th class="users">{{ _('Users') }}</th>
|
<th class="users">{{ _('Users') }}</th>
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if request.user.is_authenticated %}
|
{% if request.user.is_authenticated %}
|
||||||
<th class="solved">
|
<th class="solved">
|
||||||
|
@ -60,7 +64,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for problem in object_list %}
|
{% for problem in object_list %}
|
||||||
<tr>
|
<tr>
|
||||||
{% if request.user.is_authenticated %}
|
{% if request.user.is_authenticated and not in_ioi16 %}
|
||||||
{% if problem.id in completed_problem_ids %}
|
{% if problem.id in completed_problem_ids %}
|
||||||
<td solved="1">
|
<td solved="1">
|
||||||
<a href="{{ url('user_submissions', problem.code, request.user.username) }}">
|
<a href="{{ url('user_submissions', problem.code, request.user.username) }}">
|
||||||
|
@ -111,6 +115,7 @@
|
||||||
{% if not request.in_contest_mode %}
|
{% if not request.in_contest_mode %}
|
||||||
<td class="ac-rate">{{ problem.ac_rate|floatformat(0) }}%</td>
|
<td class="ac-rate">{{ problem.ac_rate|floatformat(0) }}%</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if not in_ioi16 %}
|
||||||
<td class="users">
|
<td class="users">
|
||||||
<a href="{{ url('ranked_submissions', problem.code) }}">
|
<a href="{{ url('ranked_submissions', problem.code) }}">
|
||||||
{% if not request.in_contest_mode or not hide_contest_scoreboard %}
|
{% if not request.in_contest_mode or not hide_contest_scoreboard %}
|
||||||
|
@ -120,6 +125,8 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if show_editorial%}
|
{% if show_editorial%}
|
||||||
<td class="editorial">
|
<td class="editorial">
|
||||||
{% if problem.has_public_editorial %}
|
{% if problem.has_public_editorial %}
|
||||||
|
|
Loading…
Reference in a new issue