Web M&M
https://mam.matfyz.cz
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
3.0 KiB
96 lines
3.0 KiB
{% extends "seminar/archiv/base.html" %}
|
|
|
|
{% block content %}
|
|
<div>
|
|
|
|
<h1>
|
|
{% block nadpis1a %}{% block nadpis1b %}
|
|
Číslo {{ cislo }}
|
|
{% endblock %}{% endblock %}
|
|
</h1>
|
|
|
|
{% if cislo.pdf %}
|
|
<p><a href='{{ cislo.pdf.url }}'>Číslo v pdf</a>
|
|
{% endif %}
|
|
<p><a href='{{ cislo.rocnik.verejne_url }}'>Ročník {{ cislo.rocnik }}</a>
|
|
|
|
{% if v_cisle_zadane %}
|
|
<h2>Zadané problémy</h2>
|
|
<ul>
|
|
{% for p in v_cisle_zadane %}
|
|
<li{% if user.is_staff and not cislo.verejne %} class='mam-org-only'{% endif %}>
|
|
{% if user.is_staff or cislo.verejne %}
|
|
<a href='{{ p.verejne_url }}'>{% endif %}{{ p.kod_v_rocniku }} {{ p.nazev }} {{ p.body_v_zavorce }}{% if user.is_staff or cislo.verejne %}</a>{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
{% if resene_problemy %}
|
|
<h2>Řešené problémy</h2>
|
|
<ul>
|
|
{% for p in resene_problemy %}
|
|
<li{% if user.is_staff and not cislo.verejne %} class='mam-org-only'{% endif %}>
|
|
{% if user.is_staff or cislo.verejne %}
|
|
<a href='{{ p.verejne_url }}'>{% endif %}{{ p.kod_v_rocniku }} {{ p.nazev }} {{ p.body_v_zavorce }}{% if user.is_staff or cislo.verejne %}</a>{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
{% if user.is_staff %}
|
|
<div class="mam-org-only">
|
|
<h2> Orgovské odkazy </h2>
|
|
<ul>
|
|
<li><a href="obalky.pdf">Obálky (PDF)</a></li>
|
|
<li><a href="tituly.tex">Tituly (TeX)</a></li>
|
|
<li><a href="vysledkovka.tex">Výsledkovka (TeX)</a></li>
|
|
<li><a href="obalkovani">Obálkování</a></li>
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if cislo.verejna_vysledkovka %}
|
|
<h2>Výsledkovka</h2>
|
|
|
|
{% else %}
|
|
{% if user.is_staff %}
|
|
<div class='mam-org-only'>
|
|
<h2>Výsledkovka (neveřejná)</h2>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% 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'><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 radky_vysledkovky %}
|
|
<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.osoba.plne_jmeno }}
|
|
{% for b in rv.body_problemy_sezn %}
|
|
<td class='border-r'>{{ b }}
|
|
{% endfor %}
|
|
<td class='border-r'>{{ rv.body_cislo }}
|
|
<td class='border-r'><b>{{ rv.body_rocnik }}</b>
|
|
<td class='border-r'>{{ rv.body_celkem_odjakziva }}
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% endif %}
|
|
|
|
{% if not cislo.verejna_vysledkovka and user.is_staff %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
</div>
|
|
{% endblock content %}
|
|
|