Browse Source

Podbarveni submenu uvod

remotes/origin/cislopdf
Bc. Petr Pecha 9 years ago
parent
commit
0f4044d7c0
  1. 12
      mamweb/templates/base.html
  2. 14
      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'> <div id='menu'>
{# ============= MENU ============== #} {# ============= MENU ============== #}
<ul> <ul>
<li class="{% block menu_uvod %}notselected{% endblock %}"><a href="/co-je-MaM/uvod/">Co je M&amp;M</a> <li class="{% block menu_uvod %}{% 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_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>

14
mamweb/templates/flatpages/default.html

@ -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
seminar/templates/seminar/cojemam/organizatori.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 %}

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

@ -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…
Cancel
Save