Cloned DMOJ

This commit is contained in:
thanhluong 2020-01-21 15:35:58 +09:00
parent f623974b58
commit 49dc9ff10c
513 changed files with 132349 additions and 39 deletions

View file

@ -0,0 +1,23 @@
{% extends "admin/change_form.html" %}
{% load i18n %}
{% block extrahead %}{{ block.super }}
<script>
django.jQuery(function ($) {
$('.rerate-link').appendTo('div#bottombar').show();
$('.rejudge-link').click(function () {
return confirm('{{ _('Are you sure you want to rejudge ALL the submissions?') }}');
});
});
</script>
{% endblock extrahead %}
{% block after_field_sets %}{{ block.super }}
{% if original and original.is_rated and perms.judge.contest_rating %}
<a style="display: none" title="{% trans "Rate" %}" href="{% url 'admin:judge_contest_rate' original.pk %}"
class="button rerate-link">
<i class="fa fa-lg fa-signal"></i>
<span class="text">{% trans "Rate" %}</span>
</a>
{% endif %}
{% endblock %}

View file

@ -0,0 +1,13 @@
{% extends "reversion/change_list.html" %}
{% load i18n %}
{% block object-tools-items %}
{{ block.super }}
{% if not is_popup and perms.judge.contest_rating %}
<li>
<a href="{% url 'admin:judge_contest_rate_all' %}" class="ratealllink">
<i class="fa fa-signal"></i> {% trans "Rate all ratable contests" %}
</a>
</li>
{% endif %}
{% endblock %}