|
|
@ -9,15 +9,20 @@ |
|
|
|
</h1> |
|
|
|
|
|
|
|
{% for clanek in object_list %} |
|
|
|
{% with clanek.cislo.rocnik.rocnik as rocnik %} |
|
|
|
{% ifchanged rocnik %} |
|
|
|
{% if not forloop.first %}</ul>{% endif %} |
|
|
|
<h2>{{ rocnik }}. ročník</h2> |
|
|
|
<ul> |
|
|
|
{% endifchanged %} |
|
|
|
<li> |
|
|
|
<a href="{{ clanek.verejne_url }}">{{ clanek.nazev }}</a> |
|
|
|
{% endwith %} |
|
|
|
{% with clanek.cislo.rocnik.rocnik as rocnik %} |
|
|
|
{% ifchanged rocnik %} |
|
|
|
{% if not forloop.first %}</ul>{% endif %} |
|
|
|
<h2>{{ rocnik }}. ročník</h2> |
|
|
|
<ul> |
|
|
|
{% endifchanged %} |
|
|
|
<li> |
|
|
|
{% if clanek.cislo.pdf %} |
|
|
|
<a href="{{ clanek.cislo.pdf.url }}">{{ clanek.nazev }}</a> |
|
|
|
{% else %} |
|
|
|
{{ clanek.nazev }} (vyšlo v čísle {{clanek.cislo}}) |
|
|
|
{% endif %} |
|
|
|
</li> |
|
|
|
{% endwith %} |
|
|
|
{% endfor %} |
|
|
|
</ul> |
|
|
|
|
|
|
|