From 18131ad9848b479c1818b1c5381e9b7918b02151 Mon Sep 17 00:00:00 2001 From: undefined Date: Sat, 4 Mar 2023 19:55:40 +0800 Subject: [PATCH] ui: disable rejudge for pretest --- packages/ui-default/templates/record_main_tr.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/ui-default/templates/record_main_tr.html b/packages/ui-default/templates/record_main_tr.html index dbe315ce5..24d648e53 100644 --- a/packages/ui-default/templates/record_main_tr.html +++ b/packages/ui-default/templates/record_main_tr.html @@ -1,9 +1,10 @@ {% import "components/record.html" as record with context %} {% import "components/problem.html" as problem with context %} + {% set _isPretest = rdoc.contest and rdoc.contest.toString() == '000000000000000000000000' %} {{ record.render_status_td(rdoc, allDomain = all) }} - {% if handler.user.hasPerm(perm.PERM_REJUDGE) and not rdoc.files.hack %} + {% if handler.user.hasPerm(perm.PERM_REJUDGE) and not rdoc.files.hack and not _isPretest %}