From 555bf997c918d10b4a825d9d34824711cf1af1dd Mon Sep 17 00:00:00 2001 From: Tran Trong Nghia <80335335+emladevops@users.noreply.github.com> Date: Wed, 21 Dec 2022 17:43:21 +0700 Subject: [PATCH] Automatically refresh for the processing procedure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- templates/submission/status-testcases.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/submission/status-testcases.html b/templates/submission/status-testcases.html index db743be..df917ce 100644 --- a/templates/submission/status-testcases.html +++ b/templates/submission/status-testcases.html @@ -8,8 +8,10 @@ {% if submission.status != 'IE' %} {% if submission.status == 'QU' %}

{{ _('We are waiting for a suitable judge to process your submission...') }}

+ {% elif submission.status == 'P' %}

{{ _('Your submission is being processed...') }}

+ {% elif submission.status == 'CE' %}

{{ _('Compilation Error') }}

{{ submission.error|ansi2html }}