105 lines
3.2 KiB
HTML
105 lines
3.2 KiB
HTML
{% extends "base.html" %}
|
|
{% load render_bundle from webpack_loader %}
|
|
|
|
{% 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.je_org and not cislo.verejne %} class='mam-org-only'{% endif %}>
|
|
{% if user.je_org or cislo.verejne %}
|
|
<a href='{{ p.verejne_url }}'>{% endif %}{{ p.kod_v_rocniku }} {{ p.nazev }} {{ p.body_v_zavorce }}{% if user.je_org 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.je_org and not cislo.verejne %} class='mam-org-only'{% endif %}>
|
|
{% if user.je_org or cislo.verejne %}
|
|
<a href='{{ p.verejne_url }}'>{% endif %}{{ p.kod_v_rocniku }} {{ p.nazev }} {{ p.body_v_zavorce }}{% if user.je_org or cislo.verejne %}</a>{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
{% if user.je_org %}
|
|
<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 %}
|
|
|
|
<script id="vuedata" type="application/json">{"treenode":{{cislo.cislonode.id}}}</script>
|
|
<div id="app">
|
|
<app></app>
|
|
</div>
|
|
{% render_bundle 'chunk-vendors' %}
|
|
{% render_bundle 'vue_app_01' %}
|
|
|
|
|
|
{% if cislo.verejna_vysledkovka %}
|
|
<h2>Výsledkovka</h2>
|
|
|
|
{% else %}
|
|
{% if user.je_org %}
|
|
<div class='mam-org-only'>
|
|
<h2>Výsledkovka (neveřejná)</h2>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% if cislo.verejna_vysledkovka or user.je_org %}
|
|
<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
|
|
<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.je_org %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
</div>
|
|
{% endblock content %}
|