90 lines
2.6 KiB
HTML
90 lines
2.6 KiB
HTML
{% extends "base.html" %}
|
|
{% load render_bundle from webpack_loader %}
|
|
|
|
{% block content %}
|
|
<div>
|
|
|
|
<h1>
|
|
{% block nadpis1a %}
|
|
Číslo {{ cislo }} -
|
|
{% endblock %}
|
|
</h1>
|
|
<p><a href='{{ cislo.rocnik.verejne_url }}'>Zpět na ročník {{ cislo.rocnik }}</a></p>
|
|
|
|
{% 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" download>Tituly (TeX)</a></li>
|
|
<li><a href="vysledkovka.tex" download>Výsledkovka (TeX)</a></li>
|
|
<li><a href="obalkovani">Obálkování</a></li>
|
|
<li><a href="odmeny/{{prevcislo.rocnik.rocnik}}.{{prevcislo.poradi}}/">Odměny</a></li>
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
|
|
|
|
{% if cislo.titulka_nahled %}
|
|
<hr>
|
|
<div id="obrazek_cisla_archiv">
|
|
<p><a href="{{ cislo.pdf.url }}"><img src="{{ cislo.titulka_nahled.url }}" alt="Titulní strana {{ cislo.poradi }}. čísla"></a></p>
|
|
</div>
|
|
{% elif cislo.pdf %}
|
|
<p><a href='{{ cislo.pdf.url }}'>Číslo v pdf</a></p>
|
|
<hr>
|
|
{% endif %}
|
|
|
|
|
|
{% comment %}
|
|
<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' %}
|
|
{% endcomment %}
|
|
|
|
|
|
{% 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 %}
|
|
{% include "vysledkovky/vysledkovka_cisla.html" %}
|
|
{% endif %}
|
|
|
|
{% if not cislo.verejna_vysledkovka and user.je_org %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
</div>
|
|
{% endblock content %}
|