Web M&M
https://mam.matfyz.cz
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
106 lines
3.0 KiB
106 lines
3.0 KiB
{% extends "galerie/Base.html" %}
|
|
|
|
{% block nadpis1a %}
|
|
Galerie {{galerie.nazev}}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<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 %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{# podgalerie #}
|
|
{% if podgalerie or galerie.galerie_up %}
|
|
|
|
{% if sourozenci|length > 1 %}
|
|
{% for g in sourozenci %}
|
|
{% if g.pk != galerie.pk %}
|
|
<a href="../{{ g.pk }}">{{ g.nazev }}</a>
|
|
{% else %}
|
|
{{ g.nazev }}
|
|
{% endif %}
|
|
<span style="width: 1em; display: inline-block;"></span>
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% if podgalerie %}
|
|
<div class="galerie_nahledy">
|
|
{% for galerie in podgalerie %}
|
|
<a href="../{{galerie.pk}}" class="podgalerie_nahled">
|
|
{% if galerie.titulni_obrazek %}
|
|
{% with galerie.titulni_obrazek.obrazek_maly as obrazek %}
|
|
<img src="{{ obrazek.url }}"
|
|
width="{{ obrazek.width }}"
|
|
height="{{ obrazek.height }}" />
|
|
{% endwith %}
|
|
{% endif %}
|
|
<div>
|
|
{{ galerie }}
|
|
</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>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if user.is_staff and galerie.zobrazit > 0 %}
|
|
<div class="mam-org-only">
|
|
<a href="./new">Vytvořit novou podgalerii </a>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{# obrazky v galerii #}
|
|
{% if obrazky %}
|
|
<div class="galerie_nahledy">
|
|
{% for obrazek in obrazky %}
|
|
<a title="Zobrazit tuto fotografii" href="./{{obrazek.pk}}#nahoru" class="galerie_nahled"><span class="vystredeno"></span><img
|
|
src="{{obrazek.obrazek_maly.url}}"
|
|
width="{{ obrazek.obrazek_maly.width }}"
|
|
height="{{ obrazek.obrazek_maly.height }}" />
|
|
</a>
|
|
{% endfor %}
|
|
<br>
|
|
</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 %}
|
|
{% if not podgalerie %}
|
|
<div class="zadne-vysledky">
|
|
V galerii nejsou žádné fotky.
|
|
</div>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endblock content %}
|
|
|