Skip to content
Snippets Groups Projects

Výsledkové listiny - backend modul & pravidla MO

Merged Jiří Setnička requested to merge jirka/score into devel
3 files
+ 73
95
Compare changes
  • Side-by-side
  • Inline

Files

+ 34
2
@@ -15,12 +15,44 @@
{% endif %}
</div>
<p>Toto je polotovar výsledkové listiny určený k ručnímu dodělání.
Pořadí je neoficiální (seřazené podle součtu bodů s dělenými místy).
{% if messages %}
<div class="collapsible">
{% set error_count = messages | selectattr(0, "equalto", "error") | list | count %}
<input type="checkbox" class="toggle" id="messages-toggle">
<label for="messages-toggle" class="toggle">
Log vytváření výsledkové listiny ({{ messages|length|inflected('zpráva', 'zprávy', 'zpráv') }}
{%- if error_count > 0 %}, <span class="error">{{ error_count|inflected('chyba', 'chyby', 'chyb') }}</span>{% endif %})
</label>
<div class="collapsible-inner">
<div class="alert alert-warning">
<ul>
{% for (type, msg) in messages %}
{% if type == "error" %}<li class="error"><b>Chyba: {{ msg }}</b>
{% elif type == "warning" %}<li>Varování: {{ msg }}
{% else %}<li class="text-info">Info: {{ msg }}{% endif %}
{% endfor %}
</ul></div>
</div>
</div>
</div>
{% endif %}
<p>Mód této výsledkové listiny je <b>{{ round.score_mode.friendly_name() }}</b>.
Diskvalifikovaní, odmítnuvší a nepřítomní účastníci jsou skryti, stejně tak testovací uživatelé.
Export pod tabulkou obsahuje sloupce navíc.
Rozkliknutím bodů se lze dostat na detail daného řešení.</p>
{% if round.score_winner_limit is not none or round.score_successful_limit is not none %}
<p>
{% if round.score_winner_limit is not none %}
<b>Vítězi</b> se stávají účastníci s alespoň <b>{{ round.score_winner_limit|inflected("bodem", "body", "body") }}</b>.
{% endif %}
{% if round.score_successful_limit is not none %}
<b>Úspěšnými řešiteli</b> se stávají účastníci s alespoň <b>{{ round.score_successful_limit|inflected("bodem", "body", "body") }}</b>.
{% endif %}
{% endif %}
{{ table.to_html() }}
{% endblock %}
Loading