aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin/templates
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-20 21:38:58 +0900
committernsfisis <nsfisis@gmail.com>2026-02-20 21:38:58 +0900
commit85b7a14913c05b88b720fc546eaca5575ffe53fd (patch)
treeb19d66d3500bb4b697cf656a769a111411793cf3 /backend/admin/templates
parentfa788237eb5649e08b2a38ec21689b481b10c073 (diff)
downloadphperkaigi-2026-albatross-85b7a14913c05b88b720fc546eaca5575ffe53fd.tar.gz
phperkaigi-2026-albatross-85b7a14913c05b88b720fc546eaca5575ffe53fd.tar.zst
phperkaigi-2026-albatross-85b7a14913c05b88b720fc546eaca5575ffe53fd.zip
feat(admin): add bulk rejudge for game submissions
Extract common rejudge logic into a helper method and add two new endpoints: rejudge-latest (per-user latest only) and rejudge-all. This allows re-running submissions in bulk after testcase changes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'backend/admin/templates')
-rw-r--r--backend/admin/templates/submissions.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/admin/templates/submissions.html b/backend/admin/templates/submissions.html
index 6870c2a..c53c5b3 100644
--- a/backend/admin/templates/submissions.html
+++ b/backend/admin/templates/submissions.html
@@ -8,6 +8,12 @@
{{ define "content" }}
<h2>Submissions for Game {{ .GameID }}</h2>
+<form method="POST" action="{{ .BasePath }}admin/games/{{ .GameID }}/submissions/rejudge-latest" style="display:inline">
+ <button type="submit">Rejudge Latest</button>
+</form>
+<form method="POST" action="{{ .BasePath }}admin/games/{{ .GameID }}/submissions/rejudge-all" style="display:inline">
+ <button type="submit">Rejudge All</button>
+</form>
<table>
<thead>
<tr>