diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-09-17 00:45:46 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-09-17 00:45:46 +0900 |
| commit | 611d93ea8a5dcc7dd92ec412e8fb28078438b31b (patch) | |
| tree | 9b08446290e60af9bcda7547ece21e8dc6c40e76 /backend/admin/templates/submission_detail.html | |
| parent | a49e0b2fc1a59b54043b9ca93828346c027973eb (diff) | |
| download | iosdc-japan-2025-albatross-611d93ea8a5dcc7dd92ec412e8fb28078438b31b.tar.gz iosdc-japan-2025-albatross-611d93ea8a5dcc7dd92ec412e8fb28078438b31b.tar.zst iosdc-japan-2025-albatross-611d93ea8a5dcc7dd92ec412e8fb28078438b31b.zip | |
feat(backend): add admin pages for submissions
Diffstat (limited to 'backend/admin/templates/submission_detail.html')
| -rw-r--r-- | backend/admin/templates/submission_detail.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/backend/admin/templates/submission_detail.html b/backend/admin/templates/submission_detail.html new file mode 100644 index 0000000..406c0b4 --- /dev/null +++ b/backend/admin/templates/submission_detail.html @@ -0,0 +1,37 @@ +{{ template "base.html" . }} + +{{ define "breadcrumb" }} +<a href="{{ .BasePath }}admin/dashboard">Dashboard</a> | +<a href="{{ .BasePath }}admin/games">Games</a> | +<a href="{{ .BasePath }}admin/games/{{ .GameID }}">Game {{ .GameID }}</a> | +<a href="{{ .BasePath }}admin/games/{{ .GameID }}/submissions">Submissions</a> +{{ end }} + +{{ define "content" }} +<h2>Submission {{ .Submission.SubmissionID }}</h2> + +<h3>Basics</h3> +<ul> + <li>User: {{ .Submission.UserID }}</li> + <li>Status: {{ .Submission.Status }}</li> + <li>Code Size: {{ .Submission.CodeSize }}</li> + <li>Created At: {{ .Submission.CreatedAt }}</li> +</ul> + +<h3>Code</h3> +<pre><code>{{ .Submission.Code }}</code></pre> + +<h3>Testcase Results</h3> +{{ range .TestcaseResults }} + <h4>Testcase Result {{ .TestcaseResultID }}</h4> + <ul> + <li>Testcase ID: {{ .TestcaseID }}</li> + <li>Status: {{ .Status }}</li> + <li>Created At: {{ .CreatedAt }}</li> + </ul> + <h5>Stdout</h5> + <pre><code>{{ .Stdout }}</code></pre> + <h5>Stderr</h5> + <pre><code>{{ .Stderr }}</code></pre> +{{ end }} +{{ end }} |
