From ed6e79fdf04fa983f3ec676aeb37707ee84bec13 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Sun, 20 Feb 2022 19:03:13 -0600 Subject: [PATCH] Update UI --- judge/views/problem_data.py | 2 +- templates/submission/status-testcases.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/judge/views/problem_data.py b/judge/views/problem_data.py index 7671e7f..3908b8f 100644 --- a/judge/views/problem_data.py +++ b/judge/views/problem_data.py @@ -249,7 +249,7 @@ def problem_init_view(request, problem): raise Http404() return render(request, 'problem/yaml.html', { - 'raw_source': data, 'highlighted_source': highlight_code(data, 'yaml'), + 'raw_source': data, 'highlighted_source': highlight_code(data, 'yaml', linenos=False), 'title': _('Generated init.yml for %s') % problem.name, 'content_title': mark_safe(escape(_('Generated init.yml for %s')) % ( format_html('{0}', problem.name, diff --git a/templates/submission/status-testcases.html b/templates/submission/status-testcases.html index 4abd904..7930c1a 100644 --- a/templates/submission/status-testcases.html +++ b/templates/submission/status-testcases.html @@ -34,8 +34,8 @@ {{_('Overall: ')}} {% if request.in_contest_mode and submission.contest_or_none %} {% with contest=submission.contest_or_none %} - ({{ _('%(points)s/%(total)s points', points=contest.points|roundfloat(3), - total=contest.problem.points|floatformat(-1)) }}) + {{ _('%(points)s/%(total)s', points=contest.points|roundfloat(3), + total=contest.problem.points|floatformat(-1)) }} {% endwith %} {% else %} {{ _('%(points)s/%(total)s', points=submission.points|roundfloat(3),