Zrušeno Zobrazit = NIKDY
This commit is contained in:
parent
efb395e15a
commit
35829235f4
2 changed files with 6 additions and 6 deletions
|
|
@ -47,7 +47,7 @@
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<div class="{% if obrazek.galerie.zobrazit == 1 or obrazek.galerie.zobrazit == 2 %}mam-org-only{% endif %}{% if obrazek.galerie.zobrazit == 3 %}mam-resitel-only{% endif %}">
|
<div class="{% if obrazek.galerie.zobrazit == 1 %}mam-org-only{% endif %}{% if obrazek.galerie.zobrazit == 3 %}mam-resitel-only{% endif %}">
|
||||||
|
|
||||||
<h2>
|
<h2>
|
||||||
{% for g in cesta %}
|
{% for g in cesta %}
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ Galerie {{galerie.nazev}}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{# FIXME: použít konstanty… #}
|
{# FIXME: použít konstanty… #}
|
||||||
{% if galerie.zobrazit == 1 or galerie.zobrazit == 2 %}
|
{% if galerie.zobrazit == 1 %}
|
||||||
<div class="mam-org-only">
|
<div class="mam-org-only">
|
||||||
{% elif galerie.zobrazit == 3 %}
|
{% elif galerie.zobrazit == 3 %}
|
||||||
<div class="mam-resitel-only">
|
<div class="mam-resitel-only">
|
||||||
|
|
@ -55,7 +55,7 @@ Galerie {{galerie.nazev}}
|
||||||
{% if pgalerie.nazev|length > max_delka_nazvu %}
|
{% if pgalerie.nazev|length > max_delka_nazvu %}
|
||||||
title="{{ pgalerie.nazev }}"
|
title="{{ pgalerie.nazev }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
class="podgalerie_nahled {% if pgalerie.zobrazit == 1 or pgalerie.zobrazit == 2 %}mam-org-only{% endif %}{% if pgalerie.zobrazit == 3 %}mam-resitel-only{% endif %}">
|
class="podgalerie_nahled {% if pgalerie.zobrazit == 1 %}mam-org-only{% endif %}{% if pgalerie.zobrazit == 3 %}mam-resitel-only{% endif %}">
|
||||||
{% if pgalerie.titulni_obrazek %}
|
{% if pgalerie.titulni_obrazek %}
|
||||||
{% zmenseny_nahled pgalerie.titulni_obrazek.jako_bazmek class="" %}
|
{% zmenseny_nahled pgalerie.titulni_obrazek.jako_bazmek class="" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
@ -63,7 +63,7 @@ Galerie {{galerie.nazev}}
|
||||||
{{ pgalerie|truncatechars:max_delka_nazvu }}
|
{{ pgalerie|truncatechars:max_delka_nazvu }}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
{% if galerie.zobrazit == 1 or galerie.zobrazit == 2 %}
|
{% if galerie.zobrazit == 1 %}
|
||||||
{% if user.je_org %}
|
{% if user.je_org %}
|
||||||
<div class="mam-org-only-galerie">
|
<div class="mam-org-only-galerie">
|
||||||
({{pgalerie.poradi}})
|
({{pgalerie.poradi}})
|
||||||
|
|
@ -79,7 +79,7 @@ Galerie {{galerie.nazev}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if user.je_org %}
|
{% if user.je_org %}
|
||||||
<div class="mam-org-only">
|
<div class="mam-org-only">
|
||||||
{% if galerie.zobrazit == 1 or galerie.zobrazit == 2 %}
|
{% if galerie.zobrazit == 1 %}
|
||||||
<a href="./new">Vytvořit novou podgalerii</a>, <a href="{% url 'admin:galerie_galerie_change' galerie.pk %}">upravit galerii v adminu</a>
|
<a href="./new">Vytvořit novou podgalerii</a>, <a href="{% url 'admin:galerie_galerie_change' galerie.pk %}">upravit galerii v adminu</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
Jestli chceš změnit pořadí podgalerií nebo přidat novou, nastav zobrazení jen pro orgy v <a href="{% url 'admin:galerie_galerie_change' galerie.pk %}">adminu</a>.
|
Jestli chceš změnit pořadí podgalerií nebo přidat novou, nastav zobrazení jen pro orgy v <a href="{% url 'admin:galerie_galerie_change' galerie.pk %}">adminu</a>.
|
||||||
|
|
@ -125,7 +125,7 @@ Galerie {{galerie.nazev}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if galerie.zobrazit == 1 or galerie.zobrazit == 2 %}
|
{% if galerie.zobrazit == 1 %}
|
||||||
</div> {# mam-org-only #}
|
</div> {# mam-org-only #}
|
||||||
{% elif galerie.zobrazit == 3 %}
|
{% elif galerie.zobrazit == 3 %}
|
||||||
</div> {# mam-resitel-only #}
|
</div> {# mam-resitel-only #}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue