|
14 | 14 | {% set static = false %} |
15 | 15 | {% endif %} |
16 | 16 | {% set showPoints = scoreboard.showPoints %} |
| 17 | +{% set scoringScoreboard = scoreboard.isScoring %} |
17 | 18 | {% set usedCategories = scoreboard.usedCategories(limitToTeamIds) %} |
18 | 19 | {% set hasDifferentCategoryColors = scoreboard.categoryColors(limitToTeamIds) %} |
19 | 20 | {% set scores = scoreboard.scores | filter(score => limitToTeams is null or score.team.teamid in limitToTeamIds) %} |
|
62 | 63 | {% if enable_ranking %} |
63 | 64 | <colgroup> |
64 | 65 | <col id="scoresolv"/> |
65 | | - <col id="scoretotal"/> |
| 66 | + {% if not scoringScoreboard %} |
| 67 | + <col id="scoretotal"/> |
| 68 | + {% endif %} |
66 | 69 | </colgroup> |
67 | 70 | {% endif %} |
68 | 71 | <colgroup> |
|
79 | 82 | {% endif %} |
80 | 83 | <th title="team name" scope="col" colspan="{{ teamColspan }}">team</th> |
81 | 84 | {% if enable_ranking %} |
82 | | - <th title="# solved / penalty time" colspan="2" scope="col">score</th> |
| 85 | + {% if scoringScoreboard %} |
| 86 | + <th title="points" colspan="1" scope="col">score</th> |
| 87 | + {% else %} |
| 88 | + <th title="# solved / penalty time" colspan="2" scope="col">score</th> |
| 89 | + {% endif %} |
83 | 90 | {% endif %} |
84 | 91 | {% if showTeamSubmissions or jury %} |
85 | 92 | {% for problem in problems %} |
|
101 | 108 | <th title="problem {{ problem.problem.name }}" scope="col"> |
102 | 109 | <a {% if link %}href="{{ link }}"{% endif %} target="{{ target }}"> |
103 | 110 | {{ problem | problemBadge }} |
104 | | - {% if showPoints %} |
| 111 | + {% if showPoints and not scoringScoreboard %} |
| 112 | + <br/> |
105 | 113 | <span class='problempoints'> |
106 | 114 | [{% if problem.points == 1 %}1 point{% else %}{{ problem.points }} points{% endif %}] |
107 | 115 | </span> |
|
248 | 256 | {% if enable_ranking %} |
249 | 257 | {% set totalPoints = score.numPoints %} |
250 | 258 | <td class="scorenc">{{ totalPoints }}</td> |
251 | | - {% if scoreboard.getRuntimeAsScoreTiebreaker() %} |
252 | | - <td class="scorett">{{ "%0.3f s" | format(score.totalRuntime/1000.0) }}</td> |
253 | | - {% else %} |
254 | | - <td class="scorett">{{ totalTime }}</td> |
| 259 | + {% if not scoringScoreboard %} |
| 260 | + {% if scoreboard.getRuntimeAsScoreTiebreaker() %} |
| 261 | + <td class="scorett">{{ "%0.3f s" | format(score.totalRuntime/1000.0) }}</td> |
| 262 | + {% else %} |
| 263 | + <td class="scorett">{{ totalTime }}</td> |
| 264 | + {% endif %} |
255 | 265 | {% endif %} |
256 | 266 | {% endif %} |
257 | 267 |
|
|
311 | 321 | <td class="score_cell"> |
312 | 322 | {% if numSubmissions != '0' %} |
313 | 323 | <a {% if link %}href="{{ link }}"{% endif %}> |
314 | | - <div class="{{ scoreCssClass }}"> |
315 | | - {% if matrixItem.isCorrect %}{{ time }}{% else %} {% endif %} |
| 324 | + <div |
| 325 | + class="{{ scoreCssClass }}" |
| 326 | + {% if scoringScoreboard %} |
| 327 | + title="{% if matrixItem.isCorrect %}{{ time }} mins{% endif %}" |
| 328 | + {% endif %} |
| 329 | + > |
| 330 | + {% if scoringScoreboard %} |
| 331 | + {% if matrixItem.isCorrect %}{{ matrixItem.points }}{% else %} {% endif %} |
| 332 | + {% else %} |
| 333 | + {% if matrixItem.isCorrect %}{{ time }}{% else %} {% endif %} |
| 334 | + {% endif %} |
316 | 335 | <span> |
317 | 336 | {% if numSubmissions is same as(1) %} |
318 | 337 | 1 try |
|
0 commit comments