|
320 | 320 | <thead>
|
321 | 321 | {# output table column groups (for the styles) #}
|
322 | 322 | <colgroup>
|
323 |
| - <col id="scorerank"/> |
| 323 | + {% if enable_ranking %} |
| 324 | + <col id="scorerank"/> |
| 325 | + {% endif %} |
324 | 326 | {% if showFlags %}
|
325 | 327 | <col id="scoreflags"/>
|
326 | 328 | {% else %}
|
|
331 | 333 | {% endif %}
|
332 | 334 | <col id="scoreteamname"/>
|
333 | 335 | </colgroup>
|
334 |
| - <colgroup> |
335 |
| - <col id="scoresolv"/> |
336 |
| - </colgroup> |
| 336 | + {% if enable_ranking %} |
| 337 | + <colgroup> |
| 338 | + <col id="scoresolv"/> |
| 339 | + </colgroup> |
| 340 | + {% endif %} |
337 | 341 |
|
338 | 342 | {% set teamColspan = 2 %}
|
339 | 343 | {% if showAffiliationLogos %}
|
340 | 344 | {% set teamColspan = teamColspan + 1 %}
|
341 | 345 | {% endif %}
|
342 | 346 |
|
343 | 347 | <tr class="scoreheader" data-static="{{ static }}" style="font-size: 75%;">
|
344 |
| - <th title="rank" scope="col">rank</th> |
| 348 | + {% if enable_ranking %} |
| 349 | + <th title="rank" scope="col">rank</th> |
| 350 | + {% endif %} |
345 | 351 | <th title="team name" scope="col" colspan="{{ teamColspan }}">team</th>
|
346 |
| - <th title="# solved / penalty time" colspan="1" scope="col">score</th> |
| 352 | + {% if enable_ranking %} |
| 353 | + <th title="# solved / penalty time" colspan="1" scope="col">score</th> |
| 354 | + {% endif %} |
347 | 355 | </tr>
|
348 | 356 | </thead>
|
349 | 357 | <tbody>
|
|
373 | 381 | {% set color = score.team.category.color %}
|
374 | 382 | {% endif %}
|
375 | 383 | <tr class="{{ classes | join(' ') }}" id="team:{{ score.team.teamid }}" style="border-bottom-width: 0; height: 28px;">
|
376 |
| - <td class="scorepl {{medalColor}}" rowspan="2"> |
377 |
| - {# Only print rank when score is different from the previous team #} |
378 |
| - {% if not displayRank %} |
379 |
| - ? |
380 |
| - {% elseif previousTeam is null or scoreboard.scores[previousTeam.teamid].rank != score.rank %} |
381 |
| - {{ score.rank }} |
382 |
| - {% else %} |
383 |
| - {% endif %} |
384 |
| - {% set previousTeam = score.team %} |
385 |
| - </td> |
| 384 | + {% if enable_ranking %} |
| 385 | + <td class="scorepl {{medalColor}}" rowspan="2"> |
| 386 | + {# Only print rank when score is different from the previous team #} |
| 387 | + {% if not displayRank %} |
| 388 | + ? |
| 389 | + {% elseif previousTeam is null or scoreboard.scores[previousTeam.teamid].rank != score.rank %} |
| 390 | + {{ score.rank }} |
| 391 | + {% else %} |
| 392 | + {% endif %} |
| 393 | + {% set previousTeam = score.team %} |
| 394 | + </td> |
| 395 | + {% endif %} |
386 | 396 | <td class="scoreaf">
|
387 | 397 | {% if showFlags %}
|
388 | 398 | {% if score.team.affiliation %}
|
|
459 | 469 | {% endif %}
|
460 | 470 | </a>
|
461 | 471 | </td>
|
462 |
| - {% set totalTime = score.totalTime %} |
463 |
| - {% if scoreInSeconds %} |
464 |
| - {% set totalTime = totalTime | printTimeRelative %} |
| 472 | + {% if enable_ranking %} |
| 473 | + {% set totalTime = score.totalTime %} |
| 474 | + {% if scoreInSeconds %} |
| 475 | + {% set totalTime = totalTime | printTimeRelative %} |
| 476 | + {% endif %} |
| 477 | + {% set totalPoints = score.numPoints %} |
| 478 | + <td class="scorenc" rowspan="2">{{ totalPoints }}<br/><span class="scorett" style="font-weight: normal;">{{ totalTime }}</span></td> |
465 | 479 | {% endif %}
|
466 |
| - {% set totalPoints = score.numPoints %} |
467 |
| - <td class="scorenc" rowspan="2">{{ totalPoints }}<br/><span class="scorett" style="font-weight: normal;">{{ totalTime }}</span></td> |
468 | 480 | </tr>
|
469 | 481 | <tr style="height: 32px;">
|
470 | 482 | <td class="no-border"/>
|
|
0 commit comments