Clanky | Pridan seznam autoru clanku
Predpoklada, ze kazdy clanek ma nejvyse jedno reseni (ktere muze mit vic resitelu).
This commit is contained in:
parent
3793efdab7
commit
9af618ef28
1 changed files with 13 additions and 2 deletions
|
@ -17,9 +17,20 @@
|
|||
{% endifchanged %}
|
||||
<li>
|
||||
{% if clanek.cislo.pdf %}
|
||||
<a href="{{ clanek.cislo.pdf.url }}">{{ clanek.nazev }}</a>
|
||||
<a href="{{ clanek.cislo.pdf.url }}">
|
||||
{{ clanek.nazev }}
|
||||
({% for r in clanek.reseni_set.first.resitele.all %}
|
||||
{{r}}
|
||||
{% if not forloop.last %},{% endif %}
|
||||
{% endfor %}
|
||||
</a>
|
||||
)
|
||||
{% else %}
|
||||
{{ clanek.nazev }} (vyšlo v čísle {{clanek.cislo}})
|
||||
{{ clanek.nazev }}
|
||||
({% for r in clanek.reseni_set.first.resitele.all %}
|
||||
{{r}},
|
||||
{% endfor %}
|
||||
vyšlo v čísle {{clanek.cislo}})
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endwith %}
|
||||
|
|
Loading…
Reference in a new issue