Update UI

This commit is contained in:
cuom1999 2022-02-20 19:03:13 -06:00
parent 035749205d
commit ed6e79fdf0
2 changed files with 3 additions and 3 deletions

View file

@ -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('<a href="{1}">{0}</a>', problem.name,

View file

@ -34,8 +34,8 @@
<td><span class="col-title">{{_('Overall: ')}}</span>
{% 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),