Podbarveni menu clanky
This commit is contained in:
parent
8fa661a8ac
commit
a5f816240c
3 changed files with 22 additions and 6 deletions
|
@ -52,11 +52,11 @@
|
|||
{% with "ulohy" as selected %}
|
||||
{% include "seminar/zadani/submenu.html" %}
|
||||
{% endwith %}
|
||||
{% elif "aktualni-cislo" in flatpage.url %}
|
||||
{% elif "/aktualni-cislo/" in flatpage.url %}
|
||||
{% with "aktualni-cislo" as selected %}
|
||||
{% include "seminar/zadani/submenu.html" %}
|
||||
{% endwith %}
|
||||
{% elif "vysledkove-listiny" in flatpage.url %}
|
||||
{% elif "/vysledkove-listiny/" in flatpage.url %}
|
||||
{% with "vysledkove-listiny" as selected %}
|
||||
{% include "seminar/zadani/submenu.html" %}
|
||||
{% endwith %}
|
||||
|
@ -66,7 +66,21 @@
|
|||
{% endif %}
|
||||
{# clanky #}
|
||||
{% if "/clanky/" in flatpage.url %}
|
||||
{% include "seminar/clanky/submenu.html" %}
|
||||
{% if "/uvod/" in flatpage.url %}
|
||||
{% with "uvod" as selected %}
|
||||
{% include "seminar/clanky/submenu.html" %}
|
||||
{% endwith %}
|
||||
{% elif "/org/" in flatpage.url %}
|
||||
{% with "org" as selected %}
|
||||
{% include "seminar/clanky/submenu.html" %}
|
||||
{% endwith %}
|
||||
{% elif "/resitel/" in flatpage.url %}
|
||||
{% with "resitel" as selected %}
|
||||
{% include "seminar/clanky/submenu.html" %}
|
||||
{% endwith %}
|
||||
{% else %}
|
||||
{% include "seminar/clanky/submenu.html" %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{# archiv #}
|
||||
{% if "/archiv/" in flatpage.url %}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block menu_clanky %}selected{% endblock %}
|
||||
|
||||
{% block submenu %}
|
||||
{% include "seminar/clanky/submenu.html" %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{% with "/clanky" as cesta %}
|
||||
|
||||
<ul>
|
||||
<li><a href="{{cesta}}/uvod/">Úvod</a>
|
||||
<li><a href="{{cesta}}/org/">Organizátorské články</a>
|
||||
<li><a href="{{cesta}}/resitel/">Řešitelské články</a>
|
||||
<li class="{% if selected == "uvod" %}selected{% endif %}"><a href="{{cesta}}/uvod/">Úvod</a>
|
||||
<li class="{% if selected == "org" %}selected{% endif %}"><a href="{{cesta}}/org/">Organizátorské články</a>
|
||||
<li class="{% if selected == "resitel" %}selected{% endif %}"><a href="{{cesta}}/resitel/">Řešitelské články</a>
|
||||
</ul>
|
||||
|
||||
{% endwith %}
|
||||
|
|
Loading…
Reference in a new issue