2015-09-12 00:22:17 +02:00
|
|
|
{% for novinka in object_list %}
|
|
|
|
{# pripravene div-y na stylovani#}
|
|
|
|
<div>
|
2020-09-12 17:41:20 +02:00
|
|
|
{% if not novinka.zverejneno and user.je_org %}
|
2015-11-28 23:18:43 +01:00
|
|
|
<div class="mam-org-only">
|
2016-03-16 15:16:18 +01:00
|
|
|
<ul>
|
|
|
|
<li><a href="/admin/seminar/novinky/{{novinka.pk}}">Upravit novinku</a>
|
|
|
|
</ul>
|
2015-11-28 23:18:43 +01:00
|
|
|
{% endif %}
|
2020-09-12 17:41:20 +02:00
|
|
|
{% if novinka.zverejneno or user.je_org %}
|
2015-09-12 00:22:17 +02:00
|
|
|
{# datum #}
|
2020-07-16 15:55:51 +02:00
|
|
|
<div class=novinka_datum>{{novinka.datum}}</div>
|
2015-09-12 00:22:17 +02:00
|
|
|
{# text #}
|
|
|
|
{{ novinka.text | safe }}
|
|
|
|
{# obrazek #}
|
|
|
|
{% if novinka.obrazek %}
|
2015-11-27 16:52:20 +01:00
|
|
|
<div class='novinka_obrazek'>
|
|
|
|
{% if novinka.obrazek.height > novinka.obrazek_maly.height %}
|
|
|
|
<a href='{{ novinka.obrazek.url }}'>
|
|
|
|
<img src='{{ novinka.obrazek.url }}' height='{{ novinka.obrazek_maly.height }}'>
|
|
|
|
</a>
|
2015-09-12 00:22:17 +02:00
|
|
|
{% else %}
|
2015-11-27 16:52:20 +01:00
|
|
|
<img src='{{ novinka.obrazek.url }}' height='{{ novinka.obrazek_maly.height }}'>
|
2015-09-12 00:22:17 +02:00
|
|
|
{% endif%}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{# autor #}
|
2020-07-16 15:55:51 +02:00
|
|
|
<div class=novinka_autor>
|
|
|
|
{{novinka.autor.osoba.jmeno}}
|
|
|
|
{% if novinka.autor.osoba.prezdivka%}
|
|
|
|
„{{novinka.autor.osoba.prezdivka}}“
|
2015-09-12 16:23:40 +02:00
|
|
|
{% endif %}
|
2020-07-16 15:55:51 +02:00
|
|
|
{{novinka.autor.osoba.prijmeni}}
|
2015-09-12 16:23:40 +02:00
|
|
|
</div>
|
2015-11-28 23:18:43 +01:00
|
|
|
{% endif %}
|
2020-09-12 17:41:20 +02:00
|
|
|
{% if not novinka.zverejneno and user.je_org %}
|
2015-11-28 23:18:43 +01:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-09-18 22:12:57 +02:00
|
|
|
</div>
|
2015-09-12 00:22:17 +02:00
|
|
|
{% endfor%}
|
2015-09-12 12:31:15 +02:00
|
|
|
|