Cloned DMOJ
This commit is contained in:
parent
f623974b58
commit
49dc9ff10c
513 changed files with 132349 additions and 39 deletions
18
templates/submission/internal-error-message.html
Normal file
18
templates/submission/internal-error-message.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<h3 style="color:red;font-weight:bold">
|
||||
{% if request.user == submission.user.user %}
|
||||
{% trans trimmed %}
|
||||
An internal error occurred while grading, and the {{ SITE_NAME }} administrators have been notified.<br>
|
||||
In the meantime, try resubmitting in a few seconds.
|
||||
{% endtrans %}
|
||||
{% else %}
|
||||
{{ _('An internal error occurred while grading.') }}
|
||||
{% endif %}
|
||||
</h3>
|
||||
|
||||
{% if submission.error and request.user.is_authenticated %}
|
||||
{% if request.profile.id in submission.problem.editor_ids or perms.judge.edit_all_problem %}
|
||||
<hr style="float:left;width:30%"><br>
|
||||
<h4>{{ _('Error information') }}</h4>
|
||||
<pre><code>{{ submission.error|highlight('pytb') }}</code></pre>
|
||||
{% endif %}
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue