You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
731 B

{% 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 #}
<div class=novinky_name><p>{{novinka.autor.first_name}}
{% if novinka.autor.organizator.prezdivka%}
&bdquo;{{novinka.autor.organizator.prezdivka}}&ldquo;
{% endif %}
{{novinka.autor.last_name}}
</p>
</div>
</div>
{% endfor%}