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 %}
|
||||
|
||||
<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>
|
||||
{% for g in cesta %}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ Galerie {{galerie.nazev}}
|
|||
{% block content %}
|
||||
|
||||
{# FIXME: použít konstanty… #}
|
||||
{% if galerie.zobrazit == 1 or galerie.zobrazit == 2 %}
|
||||
{% if galerie.zobrazit == 1 %}
|
||||
<div class="mam-org-only">
|
||||
{% elif galerie.zobrazit == 3 %}
|
||||
<div class="mam-resitel-only">
|
||||
|
|
@ -55,7 +55,7 @@ Galerie {{galerie.nazev}}
|
|||
{% if pgalerie.nazev|length > max_delka_nazvu %}
|
||||
title="{{ pgalerie.nazev }}"
|
||||
{% 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 %}
|
||||
{% zmenseny_nahled pgalerie.titulni_obrazek.jako_bazmek class="" %}
|
||||
{% endif %}
|
||||
|
|
@ -63,7 +63,7 @@ Galerie {{galerie.nazev}}
|
|||
{{ pgalerie|truncatechars:max_delka_nazvu }}
|
||||
</div>
|
||||
</a>
|
||||
{% if galerie.zobrazit == 1 or galerie.zobrazit == 2 %}
|
||||
{% if galerie.zobrazit == 1 %}
|
||||
{% if user.je_org %}
|
||||
<div class="mam-org-only-galerie">
|
||||
({{pgalerie.poradi}})
|
||||
|
|
@ -79,7 +79,7 @@ Galerie {{galerie.nazev}}
|
|||
{% endif %}
|
||||
{% if user.je_org %}
|
||||
<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>
|
||||
{% 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>.
|
||||
|
|
@ -125,7 +125,7 @@ Galerie {{galerie.nazev}}
|
|||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if galerie.zobrazit == 1 or galerie.zobrazit == 2 %}
|
||||
{% if galerie.zobrazit == 1 %}
|
||||
</div> {# mam-org-only #}
|
||||
{% elif galerie.zobrazit == 3 %}
|
||||
</div> {# mam-resitel-only #}
|
||||
|
|
|
|||
Loading…
Reference in a new issue