diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-20 21:38:58 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-20 21:38:58 +0900 |
| commit | 85b7a14913c05b88b720fc546eaca5575ffe53fd (patch) | |
| tree | b19d66d3500bb4b697cf656a769a111411793cf3 /backend/admin/templates | |
| parent | fa788237eb5649e08b2a38ec21689b481b10c073 (diff) | |
| download | phperkaigi-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.html | 6 |
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> |
