Problem UI (#96)
This commit is contained in:
parent
729a28bce5
commit
d21e24dd6c
2 changed files with 15 additions and 15 deletions
|
@ -797,7 +797,7 @@ ul.errorlist {
|
||||||
align-self: center !important;
|
align-self: center !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
.a-problem {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
line-height: 1.8;
|
line-height: 1.8;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
@ -810,10 +810,10 @@ a {
|
||||||
}
|
}
|
||||||
|
|
||||||
button:hover, button:focus {
|
button:hover, button:focus {
|
||||||
text-decoration: none !important;
|
text-decoration: none;
|
||||||
outline: none !important;
|
outline: none;
|
||||||
-webkit-box-shadow: none !important;
|
-webkit-box-shadow: none;
|
||||||
box-shadow: none !important;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
|
|
|
@ -178,31 +178,31 @@
|
||||||
|
|
||||||
{% if request.user.is_authenticated and has_submissions %}
|
{% if request.user.is_authenticated and has_submissions %}
|
||||||
<div>
|
<div>
|
||||||
<a href="{{ url('user_submissions', problem.code, request.user.username) }}">{{ _('My submissions') }}</a>
|
<a class="a-problem" href="{{ url('user_submissions', problem.code, request.user.username) }}">{{ _('My submissions') }}</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div><a href="{{ url('chronological_submissions', problem.code) }}">{{ _('All submissions') }}</a></div>
|
<div><a class="a-problem" href="{{ url('chronological_submissions', problem.code) }}">{{ _('All submissions') }}</a></div>
|
||||||
<div><a href="{{ url('ranked_submissions', problem.code) }}">{{ _('Best submissions') }}</a></div>
|
<div><a class="a-problem" href="{{ url('ranked_submissions', problem.code) }}">{{ _('Best submissions') }}</a></div>
|
||||||
{% if editorial and editorial.is_public and
|
{% if editorial and editorial.is_public and
|
||||||
not (request.user.is_authenticated and request.in_contest_mode) %}
|
not (request.user.is_authenticated and request.in_contest_mode) %}
|
||||||
<hr>
|
<hr>
|
||||||
<div><a href="{{ url('problem_editorial', problem.code) }}">{{ _('Read editorial') }}</a></div>
|
<div><a class="a-problem" href="{{ url('problem_editorial', problem.code) }}">{{ _('Read editorial') }}</a></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if can_edit_problem %}
|
{% if can_edit_problem %}
|
||||||
<hr>
|
<hr>
|
||||||
<div>
|
<div>
|
||||||
<a href="{{ url('problem_ticket_list', problem.code) }}">{{ _('Manage tickets') }}
|
<a class="a-problem" href="{{ url('problem_ticket_list', problem.code) }}">{{ _('Manage tickets') }}
|
||||||
{% if num_open_tickets %}<span class="badge">{{ num_open_tickets }}</span>{% endif %}
|
{% if num_open_tickets %}<span class="badge">{{ num_open_tickets }}</span>{% endif %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div><a href="{{ url('admin:judge_problem_change', problem.id) }}">{{ _('Edit problem') }}</a></div>
|
<div><a class="a-problem" href="{{ url('admin:judge_problem_change', problem.id) }}">{{ _('Edit problem') }}</a></div>
|
||||||
{% if not problem.is_manually_managed %}
|
{% if not problem.is_manually_managed %}
|
||||||
<div><a href="{{ url('problem_data', problem.code) }}">{{ _('Edit test data') }}</a></div>
|
<div><a class="a-problem" href="{{ url('problem_data', problem.code) }}">{{ _('Edit test data') }}</a></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif request.user.is_authenticated and has_tickets %}
|
{% elif request.user.is_authenticated and has_tickets %}
|
||||||
<hr>
|
<hr>
|
||||||
<div>
|
<div>
|
||||||
<a href="{{ url('problem_ticket_list', problem.code) }}">{{ _('My tickets') }}
|
<a class="a-problem" href="{{ url('problem_ticket_list', problem.code) }}">{{ _('My tickets') }}
|
||||||
{% if num_open_tickets %}<span class="badge">{{ num_open_tickets }}</span>{% endif %}
|
{% if num_open_tickets %}<span class="badge">{{ num_open_tickets }}</span>{% endif %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -210,13 +210,13 @@
|
||||||
|
|
||||||
{% if problem.is_subs_manageable_by(request.user) %}
|
{% if problem.is_subs_manageable_by(request.user) %}
|
||||||
<div>
|
<div>
|
||||||
<a href="{{ url('problem_manage_submissions', problem.code) }}">{{ _('Manage submissions') }}</a>
|
<a class="a-problem" href="{{ url('problem_manage_submissions', problem.code) }}">{{ _('Manage submissions') }}</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if perms.judge.clone_problem %}
|
{% if perms.judge.clone_problem %}
|
||||||
<div>
|
<div>
|
||||||
<a href="{{ url('problem_clone', problem.code) }}">{{ _('Clone problem') }}</a>
|
<a class="a-problem" href="{{ url('problem_clone', problem.code) }}">{{ _('Clone problem') }}</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue