|
|
@ -48,11 +48,13 @@ Galerie {{galerie.nazev}} |
|
|
|
{% for galerie in podgalerie %} |
|
|
|
<div class="podgalerie_nahled"> |
|
|
|
{% if galerie.zobrazit < 1 or user.is_staff %} |
|
|
|
{% with galerie.titulni_obrazek.obrazek_maly as obrazek %} |
|
|
|
<a href="../{{galerie.pk}}"><img src="{{ obrazek.url }}" |
|
|
|
width={% widthratio obrazek.width 200 167 %} |
|
|
|
height={% widthratio obrazek.height 200 167 %} /></a> |
|
|
|
{% endwith %} |
|
|
|
{% if galerie.titulni_obrazek %} |
|
|
|
{% with galerie.titulni_obrazek.obrazek_maly as obrazek %} |
|
|
|
<a href="../{{galerie.pk}}"><img src="{{ obrazek.url }}" |
|
|
|
width={% widthratio obrazek.width 200 167 %} |
|
|
|
height={% widthratio obrazek.height 200 167 %} /></a> |
|
|
|
{% endwith %} |
|
|
|
{% endif %} |
|
|
|
<div> |
|
|
|
<a href="../{{ galerie.pk }}">{{ galerie }}</a> |
|
|
|
</div> |
|
|
|