Automatically refresh for the processing procedure

Added a meta, so that when you're waiting for your submission to be processed, you actually don't have to Reload (or press F5) to wait for the result.

Đã thêm thẻ meta, để người sử dụng khi judge không phải chờ bài được chấm nữa. Web sẽ tự động refresh trong 3s nếu trạng thái là P hoặc QU.
This commit is contained in:
Tran Trong Nghia 2022-12-21 17:43:21 +07:00 committed by GitHub
parent 2520b3ba54
commit 555bf997c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,8 +8,10 @@
{% if submission.status != 'IE' %} {% if submission.status != 'IE' %}
{% if submission.status == 'QU' %} {% if submission.status == 'QU' %}
<h4>{{ _('We are waiting for a suitable judge to process your submission...') }}</h4> <h4>{{ _('We are waiting for a suitable judge to process your submission...') }}</h4>
<meta http-equiv="refresh" content="3" >
{% elif submission.status == 'P' %} {% elif submission.status == 'P' %}
<h4>{{ _('Your submission is being processed...') }}</h4> <h4>{{ _('Your submission is being processed...') }}</h4>
<meta http-equiv="refresh" content="3" >
{% elif submission.status == 'CE' %} {% elif submission.status == 'CE' %}
<h3><i class="fa fa-exclamation-circle fa-fw"></i>{{ _('Compilation Error') }}</h3> <h3><i class="fa fa-exclamation-circle fa-fw"></i>{{ _('Compilation Error') }}</h3>
<pre>{{ submission.error|ansi2html }}</pre> <pre>{{ submission.error|ansi2html }}</pre>