Podbarveni submenu uvod
This commit is contained in:
parent
92fad5e1f0
commit
0f4044d7c0
4 changed files with 32 additions and 11 deletions
|
@ -59,12 +59,12 @@
|
||||||
<div id='menu'>
|
<div id='menu'>
|
||||||
{# ============= MENU ============== #}
|
{# ============= MENU ============== #}
|
||||||
<ul>
|
<ul>
|
||||||
<li class="{% block menu_uvod %}notselected{% endblock %}"><a href="/co-je-MaM/uvod/">Co je M&M</a>
|
<li class="{% block menu_uvod %}{% endblock %}"><a href="/co-je-MaM/uvod/">Co je M&M</a>
|
||||||
<li class="{% block menu_soustredeni %}notselected{% endblock %}"><a href="{% url 'seminar_seznam_soustredeni' %}">Soustředění</a>
|
<li class="{% block menu_soustredeni %}{% endblock %}"><a href="{% url 'seminar_seznam_soustredeni' %}">Soustředění</a>
|
||||||
<li class="{% block menu_zadani %}notselected{% endblock %}"><a href="/zadani/aktualni/">Zadání</a>
|
<li class="{% block menu_zadani %}{% endblock %}"><a href="/zadani/aktualni/">Zadání</a>
|
||||||
<li class="{% block menu_clanky %}notselected{% endblock %}"><a href="/clanky/uvod/">Články</a>
|
<li class="{% block menu_clanky %}{% endblock %}"><a href="/clanky/uvod/">Články</a>
|
||||||
<li class="{% block menu_archiv %}notselected{% endblock %}"><a href="/archiv/cisla/">Archiv</a>
|
<li class="{% block menu_archiv %}{% endblock %}"><a href="/archiv/cisla/">Archiv</a>
|
||||||
<li class="{% block menu_odevzdat %}notselected{% endblock %}">{#<a href="/odevzdat-reseni/muj-ucet">#}Odeslat řešení{#</a>#}
|
<li class="{% block menu_odevzdat %}{% endblock %}">{#<a href="/odevzdat-reseni/muj-ucet">#}Odeslat řešení{#</a>#}
|
||||||
</ul>
|
</ul>
|
||||||
{# ======== KONEC MENU =============#}
|
{# ======== KONEC MENU =============#}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -17,7 +17,21 @@
|
||||||
{# nahraj spravne submenu #}
|
{# nahraj spravne submenu #}
|
||||||
{% block submenu %}
|
{% block submenu %}
|
||||||
{% if "/co-je-MaM/" in flatpage.url %}
|
{% if "/co-je-MaM/" in flatpage.url %}
|
||||||
|
{% if "/uvod/" in flatpage.url %}
|
||||||
|
{% with "uvod" as selected %}
|
||||||
{% include "seminar/cojemam/submenu.html" %}
|
{% include "seminar/cojemam/submenu.html" %}
|
||||||
|
{% endwith %}
|
||||||
|
{% elif "jak-resit" in flatpage.url %}
|
||||||
|
{% with "jak-resit" as selected %}
|
||||||
|
{% include "seminar/cojemam/submenu.html" %}
|
||||||
|
{% endwith %}
|
||||||
|
{% elif "FAQ" in flatpage.url %}
|
||||||
|
{% with "FAQ" as selected %}
|
||||||
|
{% include "seminar/cojemam/submenu.html" %}
|
||||||
|
{% endwith %}
|
||||||
|
{% else %}
|
||||||
|
{% include "seminar/cojemam/submenu.html" %}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if "/soustredeni/" in flatpage.url %}
|
{% if "/soustredeni/" in flatpage.url %}
|
||||||
{% include "seminar/soustredeni/submenu.html" %}
|
{% include "seminar/soustredeni/submenu.html" %}
|
||||||
|
|
|
@ -7,6 +7,13 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock%}{% endblock%}
|
{% endblock%}{% endblock%}
|
||||||
|
|
||||||
|
{% block menu_uvod %}selected{% endblock %}
|
||||||
|
{% block submenu %}
|
||||||
|
{% with "org" as selected %}
|
||||||
|
{% include "seminar/cojemam/submenu.html" %}
|
||||||
|
{% endwith %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div>
|
<div>
|
||||||
{% if not aktivni %}
|
{% if not aktivni %}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{% with "/co-je-MaM" as cesta %}
|
{% with "/co-je-MaM" as cesta %}
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="{{cesta}}/uvod/">Úvod</a>
|
<li class="{% if selected == "uvod" %}selected{% endif %}"><a href="{{cesta}}/uvod/">Úvod</a>
|
||||||
<li><a href="{{cesta}}/jak-resit/">Jak řešit</a>
|
<li class="{% if selected == "jak-resit" %}selected{% endif %}"><a href="{{cesta}}/jak-resit/">Jak řešit</a>
|
||||||
<li><a href="{{cesta}}/organizatori/">Organizátoři</a>
|
<li class="{% if selected == "org" %}selected{% endif %}"><a href="{{cesta}}/organizatori/">Organizátoři</a>
|
||||||
<li><a href="{{cesta}}/FAQ/">FAQ</a>
|
<li class="{% if selected == "FAQ" %}selected{% endif %}"><a href="{{cesta}}/FAQ/">FAQ</a>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
Loading…
Reference in a new issue