galerie | pokud neni nahled --> nezobrazuj
This commit is contained in:
parent
464984b740
commit
801195178a
1 changed files with 7 additions and 5 deletions
|
@ -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 %}
|
||||||
{% with galerie.titulni_obrazek.obrazek_maly as obrazek %}
|
{% if galerie.titulni_obrazek %}
|
||||||
<a href="../{{galerie.pk}}"><img src="{{ obrazek.url }}"
|
{% with galerie.titulni_obrazek.obrazek_maly as obrazek %}
|
||||||
width={% widthratio obrazek.width 200 167 %}
|
<a href="../{{galerie.pk}}"><img src="{{ obrazek.url }}"
|
||||||
height={% widthratio obrazek.height 200 167 %} /></a>
|
width={% widthratio obrazek.width 200 167 %}
|
||||||
{% endwith %}
|
height={% widthratio obrazek.height 200 167 %} /></a>
|
||||||
|
{% endwith %}
|
||||||
|
{% endif %}
|
||||||
<div>
|
<div>
|
||||||
<a href="../{{ galerie.pk }}">{{ galerie }}</a>
|
<a href="../{{ galerie.pk }}">{{ galerie }}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue