|
|
@ -42,28 +42,24 @@ Galerie {{galerie.nazev}} |
|
|
|
<div class="galerie_nahledy"> |
|
|
|
{% for galerie in podgalerie %} |
|
|
|
<a href="../{{galerie.pk}}" class="podgalerie_nahled"> |
|
|
|
<!--<div class="podgalerie_nahled">--> |
|
|
|
{% if galerie.zobrazit < 1 or user.is_staff %} |
|
|
|
{% if galerie.titulni_obrazek %} |
|
|
|
{% with galerie.titulni_obrazek.obrazek_maly as obrazek %} |
|
|
|
<img src="{{ obrazek.url }}" |
|
|
|
width={% widthratio obrazek.width 200 167 %} |
|
|
|
height={% widthratio obrazek.height 200 167 %} /> |
|
|
|
{% endwith %} |
|
|
|
{% with galerie.titulni_obrazek.obrazek_maly as obrazek %} |
|
|
|
<img src="{{ obrazek.url }}" |
|
|
|
width={% widthratio obrazek.width 200 167 %} |
|
|
|
height={% widthratio obrazek.height 200 167 %} /> |
|
|
|
{% endwith %} |
|
|
|
{% endif %} |
|
|
|
<div> |
|
|
|
{{ galerie }} |
|
|
|
</div> |
|
|
|
<!--</div>--> |
|
|
|
</a> |
|
|
|
{% if user.is_staff and galerie.zobrazit > 0 %} |
|
|
|
<div class="mam-org-only-galerie"> |
|
|
|
({{galerie.poradi}}) |
|
|
|
<span class="plus"><a href="plus/{{galerie.pk}}/">+</a></span> |
|
|
|
<span class="minus"><a href="minus/{{galerie.pk}}/">-</a></span> |
|
|
|
<div> |
|
|
|
{{ galerie }} |
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
</a> |
|
|
|
{% if user.is_staff and galerie.zobrazit > 0 %} |
|
|
|
<div class="mam-org-only-galerie"> |
|
|
|
({{galerie.poradi}}) |
|
|
|
<span class="plus"><a href="plus/{{galerie.pk}}/">+</a></span> |
|
|
|
<span class="minus"><a href="minus/{{galerie.pk}}/">-</a></span> |
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|
{% endfor %} |
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|