|
|
@ -34,41 +34,20 @@ |
|
|
|
|
|
|
|
{# obrazky v galerii #} |
|
|
|
{% if obrazky %} |
|
|
|
<table class="galerie_nahled"> |
|
|
|
<div class="galerie_nahledy"> |
|
|
|
{% for obrazek in obrazky %} |
|
|
|
{% if forloop.counter|add:-1|divisibleby:3 %} |
|
|
|
<tr> |
|
|
|
{% endif %} |
|
|
|
<td class="vystredeno"> |
|
|
|
<a title="Zobrazit tuto fotografii" href="./{{obrazek.pk}}#popis" |
|
|
|
class="jednoducha-galerie"> |
|
|
|
<div class="galerie_nahled"> |
|
|
|
<span class="vystredeno"></span> |
|
|
|
<a title="Zobrazit tuto fotografii" href="./{{obrazek.pk}}#popis"> |
|
|
|
<img |
|
|
|
src="{{obrazek.obrazek_maly.url}}" |
|
|
|
width={% widthratio obrazek.obrazek_maly.width 200 167 %} |
|
|
|
height={% widthratio obrazek.obrazek_maly.height 200 167 %} /> |
|
|
|
</a> |
|
|
|
<!--<a href="{{obrazek.obrazek_velky.url}}" |
|
|
|
class="javascript-galerie" data-lightbox="galerie" data-title="{{obrazek.popis}}" |
|
|
|
style="display: none;"> |
|
|
|
<img |
|
|
|
src="{{obrazek.obrazek_maly.url}}" |
|
|
|
width={% widthratio obrazek.obrazek_maly.width 200 167 %} |
|
|
|
height={% widthratio obrazek.obrazek_maly.height 200 167 %} /> |
|
|
|
</a>--> |
|
|
|
</td> |
|
|
|
{% if forloop.last %} |
|
|
|
{% if not forloop.counter|divisibleby:3 %} |
|
|
|
<td></td> |
|
|
|
{% endif %} |
|
|
|
{% if not forloop.counter|divisibleby:2 %} |
|
|
|
<td></td> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
{% if forloop.counter|divisibleby:3 or forloop.last %} |
|
|
|
</tr> |
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
{% endfor %} |
|
|
|
</table> |
|
|
|
<br> |
|
|
|
</div> |
|
|
|
{% else %} |
|
|
|
<div class="zadne-vysledky"> |
|
|
|
V galerii nejsou žádné fotky. |
|
|
|