From b43850d776ec26dfdf4068667066ffb1bc29e541 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Thu, 18 Aug 2022 23:26:30 -0500 Subject: [PATCH] Add icons to submission page --- templates/submission/status-testcases.html | 8 ++++---- templates/submission/status.html | 18 +++++++++++++----- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/templates/submission/status-testcases.html b/templates/submission/status-testcases.html index 7930c1a..22b350a 100644 --- a/templates/submission/status-testcases.html +++ b/templates/submission/status-testcases.html @@ -11,18 +11,18 @@ {% elif submission.status == 'P' %}

{{ _('Your submission is being processed...') }}

{% elif submission.status == 'CE' %} -

{{ _('Compilation Error') }}

+

{{ _('Compilation Error') }}

{{ submission.error|ansi2html }}
{% else %} {% if submission.error %} -

{{ _('Compilation Warnings') }}

+

{{ _('Compilation Warnings') }}

{{ submission.error|ansi2html }}


{% endif %} {% if is_pretest %} -

{{ _('Pretest Execution Results') }}

+

{{ _('Pretest Execution Results') }}

{% else %} -

{{ _('Execution Results') }}

+

{{ _('Execution Results') }}

{% endif %}
diff --git a/templates/submission/status.html b/templates/submission/status.html index 1cdf79b..137cc23 100644 --- a/templates/submission/status.html +++ b/templates/submission/status.html @@ -25,6 +25,16 @@ .testcases-table tbody:last-child { border-bottom: none; } + + .toggle { + cursor: pointer; + font-weight: 400; + } + + #source-header { + font-size: 1.54em; + margin-bottom: 1em; + } {% endblock %} {% block content_js_media %} @@ -60,6 +70,7 @@ if ($(window).scrollTop() + $(window).height() > $(document).height() - 100) $("html, body").animate({scrollTop: $(document).height()}, 0); } + register_toggle($('#source-header')); var receiver = new EventReceiver( "{{ EVENT_DAEMON_LOCATION }}", "{{ EVENT_DAEMON_POLL_LOCATION }}", @@ -99,8 +110,8 @@ {% endif %}
-
-
+

{{_('Source code')}}

+ -
-
{% include "submission/status-testcases.html" %}
- {% if not submission.is_graded %} {% if perms.judge.abort_any_submission %}