|
|
@ -16,55 +16,58 @@ |
|
|
|
<h3>Zadané problémy</h3> |
|
|
|
<ul> |
|
|
|
{% for p in v_cisle_zadane %} |
|
|
|
<li><a href='{{ p.verejne_url }}'>{{ p.kod_v_rocniku }} {{ p.nazev }} {{ p.body_v_zavorce }}</a> |
|
|
|
<li>{# TODO zprovoznit odkazy, až bude na co <a href='{{ p.verejne_url }}'> #}{{ p.kod_v_rocniku }} {{ p.nazev }} {{ p.body_v_zavorce }}{# </a> #} |
|
|
|
{% endfor %} |
|
|
|
</ul> |
|
|
|
|
|
|
|
<h3>Řešené problémy</h3> |
|
|
|
<ul> |
|
|
|
{% for p in resene_problemy %} |
|
|
|
<li><a href='{{ p.verejne_url }}'>{{ p.kod_v_rocniku }} {{ p.nazev }} {{ p.body_v_zavorce }}</a> |
|
|
|
<li>{# TODO zprovoznit odkazy, až bude na co <a href='{{ p.verejne_url }}'> #}{{ p.kod_v_rocniku }} {{ p.nazev }} {{ p.body_v_zavorce }}{# </a> #} |
|
|
|
{% endfor %} |
|
|
|
</ul> |
|
|
|
|
|
|
|
{% if cislo.verejna_vysledkovka %} |
|
|
|
<h3>Výsledkovka</h3> |
|
|
|
{% else %} |
|
|
|
<div class='mam-org-only'> |
|
|
|
<h3>Výsledkovka (neveřejná)</h3> |
|
|
|
{% if user.is_staff %} |
|
|
|
<div class='mam-org-only'> |
|
|
|
<h3>Výsledkovka (neveřejná)</h3> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
<table class='vysledkovka'> |
|
|
|
<tr class='border-b'> |
|
|
|
<th class='border-r'># |
|
|
|
<th class='border-r'>Jméno |
|
|
|
{% for p in problemy %} |
|
|
|
<th class='border-r'><a href="{{ p.verejne_url }}">{{ p.kod_v_rocniku }}</a> |
|
|
|
{% endfor %} |
|
|
|
<th class='border-r'>Za číslo</sup> |
|
|
|
<th class='border-r'>Za ročník |
|
|
|
<th class='border-r'>Odjakživa |
|
|
|
{% for rv in vysledkovka %} |
|
|
|
<tr> |
|
|
|
<td class='border-r'>{% autoescape off %}{{ rv.poradi }}{% endautoescape %} |
|
|
|
<th class='border-r'> |
|
|
|
{% if rv.titul %} |
|
|
|
{{ rv.titul }}<sup>MM</sup> |
|
|
|
{% endif %} |
|
|
|
{{ rv.resitel.plne_jmeno }} |
|
|
|
{% for b in rv.body_ulohy %} |
|
|
|
<td class='border-r'>{{ b }} |
|
|
|
{% endfor %} |
|
|
|
<td class='border-r'>{{ rv.body_cislo }} |
|
|
|
<td class='border-r'><b>{{ rv.body_celkem_rocnik }}</b> |
|
|
|
<td class='border-r'>{{ rv.body_celkem_odjakziva }} |
|
|
|
</tr> |
|
|
|
{% endfor %} |
|
|
|
</table> |
|
|
|
{% if cislo.verejna_vysledkovka or user.is_staff %} |
|
|
|
<table class='vysledkovka'> |
|
|
|
<tr class='border-b'> |
|
|
|
<th class='border-r'># |
|
|
|
<th class='border-r'>Jméno |
|
|
|
{% for p in problemy %} |
|
|
|
<th class='border-r'>{# TODO <a href="{{ p.verejne_url }}"> #}{{ p.kod_v_rocniku }}{# </a> #} |
|
|
|
{% endfor %} |
|
|
|
<th class='border-r'>Za číslo</sup> |
|
|
|
<th class='border-r'>Za ročník |
|
|
|
<th class='border-r'>Odjakživa |
|
|
|
{% for rv in vysledkovka %} |
|
|
|
<tr> |
|
|
|
<td class='border-r'>{% autoescape off %}{{ rv.poradi }}{% endautoescape %} |
|
|
|
<th class='border-r'> |
|
|
|
{% if rv.titul %} |
|
|
|
{{ rv.titul }}<sup>MM</sup> |
|
|
|
{% endif %} |
|
|
|
{{ rv.resitel.plne_jmeno }} |
|
|
|
{% for b in rv.body_ulohy %} |
|
|
|
<td class='border-r'>{{ b }} |
|
|
|
{% endfor %} |
|
|
|
<td class='border-r'>{{ rv.body_cislo }} |
|
|
|
<td class='border-r'><b>{{ rv.body_celkem_rocnik }}</b> |
|
|
|
<td class='border-r'>{{ rv.body_celkem_odjakziva }} |
|
|
|
</tr> |
|
|
|
{% endfor %} |
|
|
|
</table> |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
{% if cislo.verejna_vysledkovka %} |
|
|
|
{% else %} |
|
|
|
</div> |
|
|
|
{% if not cislo.verejna_vysledkovka and user.is_staff %} |
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
</div> |
|
|
|