Browse Source

Podbarveni submenu uvod

remotes/origin/cislopdf
Bc. Petr Pecha 9 years ago
parent
commit
0f4044d7c0
  1. 12
      mamweb/templates/base.html
  2. 16
      mamweb/templates/flatpages/default.html
  3. 7
      seminar/templates/seminar/cojemam/organizatori.html
  4. 8
      seminar/templates/seminar/cojemam/submenu.html

12
mamweb/templates/base.html

@ -59,12 +59,12 @@
<div id='menu'>
{# ============= MENU ============== #}
<ul>
<li class="{% block menu_uvod %}notselected{% endblock %}"><a href="/co-je-MaM/uvod/">Co je M&amp;M</a>
<li class="{% block menu_soustredeni %}notselected{% 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_clanky %}notselected{% 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_odevzdat %}notselected{% endblock %}">{#<a href="/odevzdat-reseni/muj-ucet">#}Odeslat řešení{#</a>#}
<li class="{% block menu_uvod %}{% endblock %}"><a href="/co-je-MaM/uvod/">Co je M&amp;M</a>
<li class="{% block menu_soustredeni %}{% endblock %}"><a href="{% url 'seminar_seznam_soustredeni' %}">Soustředění</a>
<li class="{% block menu_zadani %}{% endblock %}"><a href="/zadani/aktualni/">Zadání</a>
<li class="{% block menu_clanky %}{% endblock %}"><a href="/clanky/uvod/">Články</a>
<li class="{% block menu_archiv %}{% endblock %}"><a href="/archiv/cisla/">Archiv</a>
<li class="{% block menu_odevzdat %}{% endblock %}">{#<a href="/odevzdat-reseni/muj-ucet">#}Odeslat řešení{#</a>#}
</ul>
{# ======== KONEC MENU =============#}
</div>

16
mamweb/templates/flatpages/default.html

@ -17,7 +17,21 @@
{# nahraj spravne submenu #}
{% block submenu %}
{% if "/co-je-MaM/" in flatpage.url %}
{% include "seminar/cojemam/submenu.html" %}
{% if "/uvod/" in flatpage.url %}
{% with "uvod" as selected %}
{% 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 %}
{% if "/soustredeni/" in flatpage.url %}
{% include "seminar/soustredeni/submenu.html" %}

7
seminar/templates/seminar/cojemam/organizatori.html

@ -7,6 +7,13 @@
{% endif %}
{% endblock%}{% endblock%}
{% block menu_uvod %}selected{% endblock %}
{% block submenu %}
{% with "org" as selected %}
{% include "seminar/cojemam/submenu.html" %}
{% endwith %}
{% endblock %}
{% block content %}
<div>
{% if not aktivni %}

8
seminar/templates/seminar/cojemam/submenu.html

@ -1,10 +1,10 @@
{% with "/co-je-MaM" as cesta %}
<ul>
<li><a href="{{cesta}}/uvod/">Úvod</a>
<li><a href="{{cesta}}/jak-resit/">Jak řešit</a>
<li><a href="{{cesta}}/organizatori/">Organizátoři</a>
<li><a href="{{cesta}}/FAQ/">FAQ</a>
<li class="{% if selected == "uvod" %}selected{% endif %}"><a href="{{cesta}}/uvod/">Úvod</a>
<li class="{% if selected == "jak-resit" %}selected{% endif %}"><a href="{{cesta}}/jak-resit/">Jak řešit</a>
<li class="{% if selected == "org" %}selected{% endif %}"><a href="{{cesta}}/organizatori/">Organizátoři</a>
<li class="{% if selected == "FAQ" %}selected{% endif %}"><a href="{{cesta}}/FAQ/">FAQ</a>
</ul>
{% endwith %}

Loading…
Cancel
Save