|
@ -1,35 +1,76 @@ |
|
|
{% extends "galerie/Base.html" %} |
|
|
{% extends "galerie/Base.html" %} |
|
|
|
|
|
|
|
|
{% block title %}{% block nadpis1a %} |
|
|
{% block nadpis1a %} |
|
|
{{galerie.nazev}} | Galerie TODO title |
|
|
Galerie {{galerie.nazev}} |
|
|
{% endblock %}{% endblock %} |
|
|
{% endblock %} |
|
|
|
|
|
|
|
|
{% block content %} |
|
|
{% block content %} |
|
|
<h2>{{galerie.nazev}}</h2> |
|
|
|
|
|
|
|
|
<h2> |
|
|
|
|
|
{% for g in cesta %} |
|
|
|
|
|
{% if not forloop.last %} |
|
|
|
|
|
<a href="../{{ g.pk }}">{{ g.nazev }}</a> > |
|
|
|
|
|
{% else %} |
|
|
|
|
|
{{ g.nazev }} |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
{% endfor %} |
|
|
|
|
|
</h2> |
|
|
|
|
|
|
|
|
|
|
|
{% if not obrazky %} |
|
|
|
|
|
<div class="galerie_hlavicka"> |
|
|
|
|
|
{% if galerie.titulni_obrazek %} |
|
|
|
|
|
<img src="{{ galerie.titulni_obrazek.obrazek_stredni.url }}" style="border: 1px solid black;"> |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
{% if galerie.popis %} |
|
|
|
|
|
<div class="popis"> |
|
|
|
|
|
{{ galerie.popis }} |
|
|
|
|
|
</div> |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
</div> |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{# podgalerie #} |
|
|
{# podgalerie #} |
|
|
{% if podgalerie or galerie.galerie_up %} |
|
|
{% if podgalerie or galerie.galerie_up %} |
|
|
<h3> PODGALERIE </h3> |
|
|
|
|
|
<ul> |
|
|
{% if sourozenci|length > 1 %} |
|
|
{% if galerie.galerie_up %} |
|
|
{% for g in sourozenci %} |
|
|
<li><a href="../{{galerie.galerie_up.pk}}">..</a> |
|
|
{% if g.pk != galerie.pk %} |
|
|
|
|
|
<a href="../{{ g.pk }}">{{ g.nazev }}</a> |
|
|
|
|
|
{% else %} |
|
|
|
|
|
{{ g.nazev }} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
<span style="width: 1em; display: inline-block;"></span> |
|
|
|
|
|
{% endfor %} |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
{% if podgalerie %} |
|
|
|
|
|
<div class="galerie_nahledy"> |
|
|
{% for galerie in podgalerie %} |
|
|
{% for galerie in podgalerie %} |
|
|
|
|
|
<div class="podgalerie_nahled"> |
|
|
{% if galerie.zobrazit < 1 or user.is_staff %} |
|
|
{% if galerie.zobrazit < 1 or user.is_staff %} |
|
|
<li><a href="../{{galerie.pk}}">{{galerie}}</a> |
|
|
{% with galerie.titulni_obrazek.obrazek_maly as obrazek %} |
|
|
{% if user.is_staff and galerie.zobrazit > 0 %} |
|
|
<a href="../{{galerie.pk}}"><img src="{{ obrazek.url }}" |
|
|
({{galerie.poradi}}) |
|
|
width={% widthratio obrazek.width 200 167 %} |
|
|
<span class="plus"><a href="plus/{{galerie.pk}}/">+</a></span> |
|
|
height={% widthratio obrazek.height 200 167 %} /></a> |
|
|
<span class="minus"><a href="minus/{{galerie.pk}}/">-</a></span> |
|
|
{% endwith %} |
|
|
{% endif %} |
|
|
<div> |
|
|
|
|
|
<a href="../{{ galerie.pk }}">{{ galerie }}</a> |
|
|
|
|
|
</div> |
|
|
|
|
|
{# {% if user.is_staff and galerie.zobrazit > 0 %} #} |
|
|
|
|
|
{# ({{galerie.poradi}}) #} |
|
|
|
|
|
{# <span class="plus"><a href="plus/{{galerie.pk}}/">+</a></span> #} |
|
|
|
|
|
{# <span class="minus"><a href="minus/{{galerie.pk}}/">-</a></span> #} |
|
|
|
|
|
{# {% endif %} #} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
</div> |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
</ul> |
|
|
</div> |
|
|
|
|
|
{% endif %} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
{% if user.is_staff and galerie.zobrazit > 0 %} |
|
|
{% if user.is_staff and galerie.zobrazit > 0 %} |
|
|
<ul> |
|
|
<div class="mam-org-only"> |
|
|
<li><a href="./new">VYTVOŘIT NOVOU PODGALERII </a> |
|
|
<a href="./new">Vytvořit novou podgalerii </a> |
|
|
</ul> |
|
|
</div> |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{# obrazky v galerii #} |
|
|
{# obrazky v galerii #} |
|
@ -38,7 +79,7 @@ |
|
|
{% for obrazek in obrazky %} |
|
|
{% for obrazek in obrazky %} |
|
|
<div class="galerie_nahled"> |
|
|
<div class="galerie_nahled"> |
|
|
<span class="vystredeno"></span> |
|
|
<span class="vystredeno"></span> |
|
|
<a title="Zobrazit tuto fotografii" href="./{{obrazek.pk}}#popis"> |
|
|
<a title="Zobrazit tuto fotografii" href="./{{obrazek.pk}}#nahoru"> |
|
|
<img |
|
|
<img |
|
|
src="{{obrazek.obrazek_maly.url}}" |
|
|
src="{{obrazek.obrazek_maly.url}}" |
|
|
width={% widthratio obrazek.obrazek_maly.width 200 167 %} |
|
|
width={% widthratio obrazek.obrazek_maly.width 200 167 %} |
|
@ -48,9 +89,25 @@ |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
<br> |
|
|
<br> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="galerie_predchozi_nasledujici"> |
|
|
|
|
|
{% if predchozi %} |
|
|
|
|
|
<div class="predchozi"> |
|
|
|
|
|
<a href="../{{ predchozi.pk }}">Předchozí: {{ predchozi.nazev }}</a> |
|
|
|
|
|
</div> |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
{% if nasledujici %} |
|
|
|
|
|
<div class="nasledujici"> |
|
|
|
|
|
<a href="../{{ nasledujici.pk }}">Následující: {{ nasledujici.nazev }}</a> |
|
|
|
|
|
</div> |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
{% else %} |
|
|
{% else %} |
|
|
|
|
|
{% if not podgalerie %} |
|
|
<div class="zadne-vysledky"> |
|
|
<div class="zadne-vysledky"> |
|
|
V galerii nejsou žádné fotky. |
|
|
V galerii nejsou žádné fotky. |
|
|
</div> |
|
|
</div> |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
{% endif %} |
|
|
{% endblock content %} |
|
|
{% endblock content %} |
|
|