2015-09-12 00:22:17 +02:00
|
|
|
{% for novinka in object_list %}
|
|
|
|
{# pripravene div-y na stylovani#}
|
|
|
|
<div>
|
|
|
|
{# datum #}
|
|
|
|
<div><b>{{novinka.datum}}</b></div>
|
|
|
|
{# text #}
|
|
|
|
{{ novinka.text | safe }}
|
|
|
|
{# obrazek #}
|
|
|
|
{% if novinka.obrazek %}
|
|
|
|
<div>
|
|
|
|
<img src='{{novinka.obrazek.url}}'
|
|
|
|
height='
|
|
|
|
{% if novinka.obrazek.height > 200 %} {# vyska obrazku natvrdo #}
|
|
|
|
200
|
|
|
|
{% else %}
|
|
|
|
{{novinka.obrazek.height}}
|
|
|
|
{% endif%}
|
|
|
|
'>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{# autor #}
|
2015-09-12 16:23:40 +02:00
|
|
|
<div class=novinky_name><p>{{novinka.autor.first_name}}
|
|
|
|
{% if novinka.autor.organizator.prezdivka%}
|
|
|
|
„{{novinka.autor.organizator.prezdivka}}“
|
|
|
|
{% endif %}
|
|
|
|
{{novinka.autor.last_name}}
|
|
|
|
</p>
|
|
|
|
</div>
|
2015-09-12 00:22:17 +02:00
|
|
|
</div>
|
|
|
|
{% endfor%}
|
2015-09-12 12:31:15 +02:00
|
|
|
|