Reformat html files

This commit is contained in:
cuom1999 2023-01-27 17:11:10 -06:00
parent 9a208ca108
commit 52f1e77fe1
205 changed files with 11096 additions and 11086 deletions

View file

@ -2,19 +2,19 @@
{% load i18n %}
{% block extrahead %}{{ block.super }}
<script>
django.jQuery(function ($) {
$('.profilelink').appendTo('div#bottombar').show();
});
</script>
<script>
django.jQuery(function ($) {
$('.profilelink').appendTo('div#bottombar').show();
});
</script>
{% endblock extrahead %}
{% block after_field_sets %}{{ block.super }}
{% if original %}
<a style="display: none" title="{% trans "Edit profile" %}" href="{% url 'admin:judge_profile_change' original.profile.pk %}"
class="button profilelink">
<i class="fa fa-lg fa-user-plus"></i>
<span class="text">{% trans "Edit profile" %}</span>
</a>
{% endif %}
{% if original %}
<a style="display: none" title="{% trans "Edit profile" %}" href="{% url 'admin:judge_profile_change' original.profile.pk %}"
class="button profilelink">
<i class="fa fa-lg fa-user-plus"></i>
<span class="text">{% trans "Edit profile" %}</span>
</a>
{% endif %}
{% endblock %}

View file

@ -2,22 +2,22 @@
{% 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>
<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 original.ended 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 %}
{% if original and original.is_rated and original.ended 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

@ -2,12 +2,12 @@
{% 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 %}
{{ 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 %}

View file

@ -2,25 +2,25 @@
{% load i18n %}
{% block extrahead %}{{ block.super }}
<script>
django.jQuery(function ($) {
$('.disconnect-link').appendTo('div#bottombar').show();
$('.terminate-link').appendTo('div#bottombar').show();
});
</script>
<script>
django.jQuery(function ($) {
$('.disconnect-link').appendTo('div#bottombar').show();
$('.terminate-link').appendTo('div#bottombar').show();
});
</script>
{% endblock extrahead %}
{% block after_field_sets %}{{ block.super }}
{% if original %}
<a style="display: none" title="{% trans "Disconnect" %}" href="{% url 'admin:judge_judge_disconnect' original.pk %}"
class="button disconnect-link">
<i class="fa fa-lg fa-power-off"></i>
<span class="text">{% trans "Disconnect" %}</span>
</a>
<a style="display: none" title="{% trans "Terminate" %}" href="{% url 'admin:judge_judge_terminate' original.pk %}"
class="button terminate-link">
<i class="fa fa-lg fa-plug"></i>
<span class="text">{% trans "Terminate" %}</span>
</a>
{% endif %}
{% if original %}
<a style="display: none" title="{% trans "Disconnect" %}" href="{% url 'admin:judge_judge_disconnect' original.pk %}"
class="button disconnect-link">
<i class="fa fa-lg fa-power-off"></i>
<span class="text">{% trans "Disconnect" %}</span>
</a>
<a style="display: none" title="{% trans "Terminate" %}" href="{% url 'admin:judge_judge_terminate' original.pk %}"
class="button terminate-link">
<i class="fa fa-lg fa-plug"></i>
<span class="text">{% trans "Terminate" %}</span>
</a>
{% endif %}
{% endblock %}

View file

@ -2,24 +2,24 @@
{% load i18n %}
{% block extrahead %}{{ block.super }}
<script>
django.jQuery(function ($) {
$('.submissions-link').appendTo('div#bottombar').show();
$('.votes-link').appendTo('div#bottombar').show();
});
</script>
<script>
django.jQuery(function ($) {
$('.submissions-link').appendTo('div#bottombar').show();
$('.votes-link').appendTo('div#bottombar').show();
});
</script>
{% endblock extrahead %}
{% block after_field_sets %}{{ block.super }}
{% if original %}
<a style="display: none" title="{% trans "View Submissions" %}" class="button submissions-link"
href="{% url 'admin:judge_submission_changelist' %}?problem__code={{ original.code }}">
<i class="fa fa-lg fa-search-plus"></i>
<span class="text">{% trans "View submissions" %}</span>
<a style="display: none" title="{{ _('View votes') }}" class="button votes-link"
href="{% url 'admin:judge_problempointsvote_changelist' %}?problem__code={{ original.code }}">
<i class="fa fa-lg fa-envelope"></i>
<span class="text">{{ _('View votes') }}</span>
</a>
{% endif %}
{% if original %}
<a style="display: none" title="{% trans "View Submissions" %}" class="button submissions-link"
href="{% url 'admin:judge_submission_changelist' %}?problem__code={{ original.code }}">
<i class="fa fa-lg fa-search-plus"></i>
<span class="text">{% trans "View submissions" %}</span>
<a style="display: none" title="{{ _('View votes') }}" class="button votes-link"
href="{% url 'admin:judge_problempointsvote_changelist' %}?problem__code={{ original.code }}">
<i class="fa fa-lg fa-envelope"></i>
<span class="text">{{ _('View votes') }}</span>
</a>
{% endif %}
{% endblock %}

View file

@ -2,19 +2,19 @@
{% load i18n %}
{% block extrahead %}{{ block.super }}
<script>
django.jQuery(function ($) {
$('.userlink').appendTo('div#bottombar').show();
});
</script>
<script>
django.jQuery(function ($) {
$('.userlink').appendTo('div#bottombar').show();
});
</script>
{% endblock extrahead %}
{% block after_field_sets %}{{ block.super }}
{% if original %}
<a style="display: none" title="{% trans "Edit user" %}" href="{% url 'admin:auth_user_change' original.user.pk %}"
class="button userlink">
<i class="fa fa-lg fa-user"></i>
<span class="text">{% trans "Edit user" %}</span>
</a>
{% endif %}
{% if original %}
<a style="display: none" title="{% trans "Edit user" %}" href="{% url 'admin:auth_user_change' original.user.pk %}"
class="button userlink">
<i class="fa fa-lg fa-user"></i>
<span class="text">{% trans "Edit user" %}</span>
</a>
{% endif %}
{% endblock %}

View file

@ -2,19 +2,19 @@
{% load i18n %}
{% block extrahead %}{{ block.super }}
<script>
django.jQuery(function ($) {
$('.rejudgelink').appendTo('div#bottombar').show();
});
</script>
<script>
django.jQuery(function ($) {
$('.rejudgelink').appendTo('div#bottombar').show();
});
</script>
{% endblock extrahead %}
{% block after_field_sets %}{{ block.super }}
{% if original %}
<a style="display: none" title="{% trans "Rejudge" %}" href="{% url 'admin:judge_submission_rejudge' original.pk %}"
class="button rejudgelink">
<i class="fa fa-lg fa-refresh"></i>
<span class="text">{% trans "Rejudge" %}</span>
</a>
{% endif %}
{% if original %}
<a style="display: none" title="{% trans "Rejudge" %}" href="{% url 'admin:judge_submission_rejudge' original.pk %}"
class="button rejudgelink">
<i class="fa fa-lg fa-refresh"></i>
<span class="text">{% trans "Rejudge" %}</span>
</a>
{% endif %}
{% endblock %}