Browse Source

Podbarveni menu zadani

remotes/origin/cislopdf
Bc. Petr Pecha 9 years ago
parent
commit
8fa661a8ac
  1. 21
      mamweb/templates/flatpages/default.html
  2. 6
      seminar/templates/seminar/zadani/AktualniZadani.html
  3. 7
      seminar/templates/seminar/zadani/Temata.html
  4. 2
      seminar/templates/seminar/zadani/base.html
  5. 10
      seminar/templates/seminar/zadani/submenu.html

21
mamweb/templates/flatpages/default.html

@ -16,6 +16,7 @@
{# nahraj spravne submenu #} {# nahraj spravne submenu #}
{% block submenu %} {% block submenu %}
{# co-je-MaM #}
{% if "/co-je-MaM/" in flatpage.url %} {% if "/co-je-MaM/" in flatpage.url %}
{% if "/uvod/" in flatpage.url %} {% if "/uvod/" in flatpage.url %}
{% with "uvod" as selected %} {% with "uvod" as selected %}
@ -33,6 +34,7 @@
{% include "seminar/cojemam/submenu.html" %} {% include "seminar/cojemam/submenu.html" %}
{% endif %} {% endif %}
{% endif %} {% endif %}
{# soustredeni #}
{% if "/soustredeni/" in flatpage.url %} {% if "/soustredeni/" in flatpage.url %}
{% if "/pripravujeme/" in flatpage.url %} {% if "/pripravujeme/" in flatpage.url %}
{% with "pripravujeme" as selected %} {% with "pripravujeme" as selected %}
@ -44,12 +46,29 @@
{% endwith %} {% endwith %}
{% endif %} {% endif %}
{% endif %} {% endif %}
{# zadani #}
{% if "/zadani/" in flatpage.url %} {% if "/zadani/" in flatpage.url %}
{% include "seminar/zadani/submenu.html" %} {% if "/ulohy/" in flatpage.url %}
{% with "ulohy" as selected %}
{% include "seminar/zadani/submenu.html" %}
{% endwith %}
{% elif "aktualni-cislo" in flatpage.url %}
{% with "aktualni-cislo" as selected %}
{% include "seminar/zadani/submenu.html" %}
{% endwith %}
{% elif "vysledkove-listiny" in flatpage.url %}
{% with "vysledkove-listiny" as selected %}
{% include "seminar/zadani/submenu.html" %}
{% endwith %}
{% else %}
{% include "seminar/zadani/submenu.html" %}
{% endif %}
{% endif %} {% endif %}
{# clanky #}
{% if "/clanky/" in flatpage.url %} {% if "/clanky/" in flatpage.url %}
{% include "seminar/clanky/submenu.html" %} {% include "seminar/clanky/submenu.html" %}
{% endif %} {% endif %}
{# archiv #}
{% if "/archiv/" in flatpage.url %} {% if "/archiv/" in flatpage.url %}
{% include "seminar/archiv/submenu.html" %} {% include "seminar/archiv/submenu.html" %}
{% endif %} {% endif %}

6
seminar/templates/seminar/zadani/AktualniZadani.html

@ -1,5 +1,11 @@
{% extends "seminar/zadani/base.html" %} {% extends "seminar/zadani/base.html" %}
{% block submenu %}
{% with "aktualni" as selected %}
{% include 'seminar/zadani/submenu.html' %}
{% endwith %}
{% endblock submenu %}
{% block content %} {% block content %}
<div> <div>
<h2> <h2>

7
seminar/templates/seminar/zadani/Temata.html

@ -1,5 +1,12 @@
{% extends "seminar/zadani/base.html" %} {% extends "seminar/zadani/base.html" %}
{% block submenu %}
{% with "temata" as selected %}
{% include 'seminar/zadani/submenu.html' %}
{% endwith %}
{% endblock submenu %}
{% block content %} {% block content %}
{% with nastaveni.aktualni_rocnik as ar %} {% with nastaveni.aktualni_rocnik as ar %}
<div> <div>

2
seminar/templates/seminar/zadani/base.html

@ -1,5 +1,7 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block menu_zadani %}selected{% endblock %}
{% block submenu %} {% block submenu %}
{% include 'seminar/zadani/submenu.html' %} {% include 'seminar/zadani/submenu.html' %}
{% endblock submenu %} {% endblock submenu %}

10
seminar/templates/seminar/zadani/submenu.html

@ -1,11 +1,11 @@
{% with "/zadani" as cesta %} {% with "/zadani" as cesta %}
<ul> <ul>
<li><a href="{{cesta}}/aktualni/">Aktuální zadání</a> <li class="{% if selected == "aktualni" %}selected{% endif %}"><a href="{{cesta}}/aktualni/">Aktuální zadání</a>
<li><a href="{{cesta}}/ulohy/">Úlohy</a> <li class="{% if selected == "ulohy" %}selected{% endif %}"><a href="{{cesta}}/ulohy/">Úlohy</a>
<li><a href="{{cesta}}/temata/">Témata</a> <li class="{% if selected == "temata" %}selected{% endif %}"><a href="{{cesta}}/temata/">Témata</a>
<li><a href="{{cesta}}/aktualni-cislo/">Aktuální číslo</a> <li class="{% if selected == "aktualni-cislo" %}selected{% endif %}"><a href="{{cesta}}/aktualni-cislo/">Aktuální číslo</a>
<li><a href="{{cesta}}/vysledkove-listiny/">Výsledkové listiny</a> <li class="{% if selected == "vysledkove-listiny" %}selected{% endif %}"><a href="{{cesta}}/vysledkove-listiny/">Výsledkové listiny</a>
</ul> </ul>
{% endwith %} {% endwith %}

Loading…
Cancel
Save