add admin's permission to view submission in contests
This commit is contained in:
parent
5562db7ecd
commit
ab7bdf1eef
2 changed files with 3 additions and 5 deletions
|
@ -36,7 +36,7 @@
|
|||
<table>{% for case in batch.cases %}
|
||||
<tr id="{{ case.id }}" class="case-row toggle closed">
|
||||
<td>
|
||||
{%- if (prefix_length is none or prefix_length > 0) -%}
|
||||
{%- if ((prefix_length is none or prefix_length > 0) or (request.user.is_superuser)) -%}
|
||||
<i class="fa fa-chevron-right fa-fw"></i>
|
||||
{%- endif -%}
|
||||
{%- if batch.id -%}
|
||||
|
@ -72,11 +72,11 @@
|
|||
{% endif %}
|
||||
</tr>
|
||||
|
||||
{% if (prefix_length is none or prefix_length > 0) %}
|
||||
{% if ((prefix_length is none or prefix_length > 0) or (request.user.is_superuser)) %}
|
||||
<tr id="{{ case.id }}-output" style="display:none" class="case-feedback toggled">
|
||||
<td colspan="5">
|
||||
<div class="case-info">
|
||||
{% set curr_data = cases_data[case.case]%}
|
||||
{% set curr_data = cases_data[case.case] %}
|
||||
<strong>{{ _('Input:') }}</strong>
|
||||
<pre class="case-output">{{ curr_data['input']|linebreaksbr }}</pre>
|
||||
<strong>{{ _('Your output:') }}</strong>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue