Update UI
This commit is contained in:
parent
035749205d
commit
ed6e79fdf0
2 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue