|
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 %}
|
|
107 | 114 | >
|
108 | 115 | <a {% if link %}href="{{ link }}"{% endif %} target="{{ target }}">
|
109 | 116 | {{ problem | problemBadge }}
|
110 |
| - {% if showPoints %} |
| 117 | + {% if showPoints and not scoringScoreboard %} |
| 118 | + <br/> |
111 | 119 | <span class='problempoints'>
|
112 | 120 | [{% if problem.points == 1 %}1 point{% else %}{{ problem.points }} points{% endif %}]
|
113 | 121 | </span>
|
|
254 | 262 | {% if enable_ranking %}
|
255 | 263 | {% set totalPoints = score.numPoints %}
|
256 | 264 | <td class="scorenc">{{ totalPoints }}</td>
|
257 |
| - {% if scoreboard.getRuntimeAsScoreTiebreaker() %} |
258 |
| - <td class="scorett">{{ "%0.3f s" | format(score.totalRuntime/1000.0) }}</td> |
259 |
| - {% else %} |
260 |
| - <td class="scorett">{{ totalTime }}</td> |
| 265 | + {% if not scoringScoreboard %} |
| 266 | + {% if scoreboard.getRuntimeAsScoreTiebreaker() %} |
| 267 | + <td class="scorett">{{ "%0.3f s" | format(score.totalRuntime/1000.0) }}</td> |
| 268 | + {% else %} |
| 269 | + <td class="scorett">{{ totalTime }}</td> |
| 270 | + {% endif %} |
261 | 271 | {% endif %}
|
262 | 272 | {% endif %}
|
263 | 273 |
|
|
328 | 338 | <td class="score_cell">
|
329 | 339 | {% if numSubmissions != '0' %}
|
330 | 340 | <a {% if link %}href="{{ link }}"{% endif %} {% if extra %}{{ extra | raw }}{% endif %}>
|
331 |
| - <div class="{{ scoreCssClass }}"> |
332 |
| - {% if matrixItem.isCorrect %}{{ time }}{% else %} {% endif %} |
| 341 | + <div |
| 342 | + class="{{ scoreCssClass }}" |
| 343 | + {% if scoringScoreboard %} |
| 344 | + title="{% if matrixItem.isCorrect %}{{ time }} mins{% endif %}" |
| 345 | + {% endif %} |
| 346 | + > |
| 347 | + {% if scoringScoreboard %} |
| 348 | + {% if matrixItem.isCorrect %}{{ matrixItem.points }}{% else %} {% endif %} |
| 349 | + {% else %} |
| 350 | + {% if matrixItem.isCorrect %}{{ time }}{% else %} {% endif %} |
| 351 | + {% endif %} |
333 | 352 | <span>
|
334 | 353 | {% if numSubmissions is same as(1) %}
|
335 | 354 | 1 try
|
|
0 commit comments