|
|
@ -1,8 +1,8 @@ |
|
|
|
{% extends "galerie/Base.html" %} |
|
|
|
|
|
|
|
{% block title %}{% block nadpis1a %} |
|
|
|
{{galerie.nazev}} | Galerie TODO title |
|
|
|
{% endblock %}{% endblock %} |
|
|
|
{% block nadpis1a %} |
|
|
|
Galerie {{galerie.nazev}} |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
{% block content %} |
|
|
|
<h2>{{galerie.nazev}}</h2> |
|
|
@ -10,20 +10,33 @@ |
|
|
|
{# podgalerie #} |
|
|
|
{% if podgalerie or galerie.galerie_up %} |
|
|
|
<h3> PODGALERIE </h3> |
|
|
|
<ul> |
|
|
|
{% if galerie.galerie_up %} |
|
|
|
<li><a href="../{{galerie.galerie_up.pk}}">..</a> |
|
|
|
<a href="../{{galerie.galerie_up.pk}}">..</a> |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
{% if podgalerie %} |
|
|
|
<div class="galerie_nahledy"> |
|
|
|
{% for galerie in podgalerie %} |
|
|
|
<div class="podgalerie_nahled"> |
|
|
|
{% if galerie.zobrazit < 1 or user.is_staff %} |
|
|
|
<li><a href="../{{galerie.pk}}">{{galerie}}</a> |
|
|
|
{% 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 %} |
|
|
|
{% with galerie.titulni_obrazek.obrazek_maly as obrazek %} |
|
|
|
<a href="../{{galerie.pk}}"><img src="{{ obrazek.url }}" |
|
|
|
width={% widthratio obrazek.width 200 167 %} |
|
|
|
height={% widthratio obrazek.height 200 167 %} /></a> |
|
|
|
{% endwith %} |
|
|
|
<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 %} |
|
|
|
</div> |
|
|
|
{% endfor %} |
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|
</ul> |
|
|
|
{% endif %} |
|
|
|
{% if user.is_staff and galerie.zobrazit > 0 %} |
|
|
@ -38,7 +51,7 @@ |
|
|
|
{% for obrazek in obrazky %} |
|
|
|
<div class="galerie_nahled"> |
|
|
|
<span class="vystredeno"></span> |
|
|
|
<a title="Zobrazit tuto fotografii" href="./{{obrazek.pk}}#popis"> |
|
|
|
<a title="Zobrazit tuto fotografii" href="./{{obrazek.pk}}#nahoru"> |
|
|
|
<img |
|
|
|
src="{{obrazek.obrazek_maly.url}}" |
|
|
|
width={% widthratio obrazek.obrazek_maly.width 200 167 %} |
|
|
|