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