aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin/templates/submission_detail.html
blob: b4c82d066a072b47c1ddcf0d5025a5b08c653ac2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{{ 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.Username }} (id={{ .Submission.UserID }})</li>
  <li>Status: {{ .Submission.Status }}</li>
  <li>Code Size: {{ .Submission.CodeSize }}</li>
  <li>Created At: {{ .Submission.CreatedAt }}</li>
</ul>

<form method="POST" action="{{ .BasePath }}admin/games/{{ .GameID }}/submissions/{{ .Submission.SubmissionID }}/rejudge">
  <button type="submit">Rejudge</button>
</form>

<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 }}