Skip to content

Commit d080c15

Browse files
committed
integrate contest.showProblemScore in submission-list
1 parent 3633a7d commit d080c15

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/pods/components/submissions-list/template.hbs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
<table class="w-100">
99
<thead class="font-sm extra-bold b-bottom">
1010
<td class="pb-2">Result</td>
11-
<td class="pb-2">Score</td>
11+
{{#if contest.showProblemScore}}
12+
<td class="pb-2">Score</td>
13+
{{/if}}
1214
<td class="pb-2">Time</td>
1315
<td class="pb-2">Language</td>
1416
</thead>
@@ -19,7 +21,9 @@
1921
<i class="{{submission.resultParams.icon}} pr-3"></i>
2022
<span>{{submission.resultParams.message}}</span>
2123
</td>
22-
<td class="pb-4 pt-4">{{submission.score}}/100</td>
24+
{{#if contest.showProblemScore}}
25+
<td class="pb-4 pt-4">{{submission.score}}/100</td>
26+
{{/if}}
2327
<td class="pb-4 pt-4">{{submission.executionTime}}</td>
2428
<td class="pb-4 pt-4">{{submission.language}}</td>
2529
<td class="pb-4 pt-4">

0 commit comments

Comments
 (0)