|
|
|
@ -83,10 +83,12 @@
|
|
|
|
|
<li class="menu__item"><a class="menu__link{% if page_name == 'problem_edit' %} active{% endif %}" href="{{ url('problem_edit', pid=pdoc.pid|default(pdoc.docId)) }}">
|
|
|
|
|
<span class="icon icon-edit"></span> {{ _('Edit') }}
|
|
|
|
|
</a></li>
|
|
|
|
|
{% if not pdoc.reference %}
|
|
|
|
|
<li class="menu__item"><a class="menu__link{% if page_name == 'problem_config' %} active{% endif %}" href="{{ url('problem_config', pid=pdoc.pid|default(pdoc.docId)) }}">
|
|
|
|
|
<span class="icon icon-settings"></span> {{ _('Judge Config') }}
|
|
|
|
|
</a></li>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if page_name == 'problem_detail' %}
|
|
|
|
|
<li class="menu__seperator nojs--hide"></li>
|
|
|
|
|
{% if handler.user.own(pdoc) or handler.user.hasPriv(PRIV.PRIV_READ_PROBLEM_DATA) or handler.user.hasPerm(perm.PERM_READ_PROBLEM_DATA) %}
|
|
|
|
|