Skip to content

Commit 73f4a71

Browse files
Fix submission page in shadow mode for non-external submissions
1 parent 88f7c64 commit 73f4a71

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

webapp/templates/jury/partials/submission_graph.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</div>
1919
</div>
2020
{% endif %}
21-
{% if externalJudgement is not null and externalJudgement.result is not null %}
21+
{% if externalJudgement is not null and externalJudgement.result is not null and externalJudging is defined %}
2222
<div class="card" style="display: inline-block" id="externalruntime">
2323
<div class="card-header">
2424
<span id="graphs" style="font-weight: bold;">External Testcase CPU times

webapp/templates/jury/submission.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,11 +551,11 @@
551551
{{ externalRuns | displayTestcaseResults(externalJudgement.endtime is not empty, true) }}
552552
</td>
553553
<td>
554-
{% if externalSubmissionUrl and externalSubmissionUrl is not empty %}
554+
{% if externalSubmissionUrl is defined and externalSubmissionUrl is not empty %}
555555
<a href="{{ externalSubmissionUrl }}">
556556
{% endif %}
557557
external {{ externalJudgement.extjudgementid }}
558-
{% if externalSubmissionUrl and externalSubmissionUrl is not empty %}
558+
{% if externalSubmissionUrl is defined and externalSubmissionUrl is not empty %}
559559
</a>
560560
{% endif %}
561561
</td>

0 commit comments

Comments
 (0)