Bc. Petr Pecha
9 years ago
2 changed files with 63 additions and 17 deletions
@ -0,0 +1,47 @@ |
|||
{% extends "base.html" %} |
|||
|
|||
{% block title %}{% block nadpis1a %} |
|||
{{galerie.nazev}} | Galerie |
|||
{% endblock %}{% endblock %} |
|||
|
|||
{% block content %} |
|||
<h1><a title="Zpět na náhled fotek" href="../#obsah">{{galerie.nazev}}</a></h1> |
|||
<div class="galerie_top" id="obsah"> |
|||
{% for obrazek in obrazky_predchozi %} |
|||
<a href="../{{obrazek.pk}}#obsah"><img src="{{obrazek.obrazek_maly.url}}" height="100"></a> |
|||
{% endfor %} |
|||
</div> |
|||
|
|||
|
|||
{# TODO šipky na přecházeni dodelat ve stylech #} |
|||
<div class="galerie"> |
|||
{% if obrazky_predchozi %} |
|||
{% with obrazky_predchozi|last as predchozi_obrazek %} |
|||
<div> |
|||
<a title="Předchozí" class="predchozi_obrazek" href="../{{predchozi_obrazek.pk}}#obsah"></a> |
|||
</div> |
|||
{% endwith %} |
|||
{% endif%} |
|||
<img src={{obrazek.obrazek_stredni.url}} |
|||
height="{{vyska}}" |
|||
width="{{sirka}}" |
|||
alt="{{obrazek.popis}}" |
|||
class="obrazek"> |
|||
{% if obrazky_dalsi %} |
|||
{% with obrazky_dalsi|first as dalsi_obrazek %} |
|||
<div> |
|||
<a title="Další" class="dalsi_obrazek" href="../{{dalsi_obrazek.pk}}#obsah"></a> |
|||
</div> |
|||
{% endwith %} |
|||
{% endif%} |
|||
</div> |
|||
<div class="popis"> |
|||
{{obrazek.popis}} |
|||
</div> |
|||
|
|||
<div class="galerie_bot"> |
|||
{% for obrazek in obrazky_dalsi %} |
|||
<a href="../{{obrazek.pk}}#obsah"><img src="{{obrazek.obrazek_maly.url}}" height="100"></a> |
|||
{% endfor %} |
|||
</div> |
|||
{% endblock %} |
Loading…
Reference in new issue