Podbarveni submenu archiv

This commit is contained in:
Bc. Petr Pecha 2015-09-11 18:36:16 +02:00
parent a5f816240c
commit 85ca7d602b
11 changed files with 42 additions and 12 deletions

View file

@ -84,7 +84,13 @@
{% endif %}
{# archiv #}
{% if "/archiv/" in flatpage.url %}
{% include "seminar/archiv/submenu.html" %}
{% if "/ulohy/" in flatpage.url %}
{% with "ulohy" as selected %}
{% include "seminar/archiv/submenu.html" %}
{% endwith %}
{% else %}
{% include "seminar/archiv/submenu.html" %}
{% endif %}
{% endif %}
{% endblock %}

View file

@ -1,6 +1,4 @@
{% extends "base.html" %}
{% block submenu %}
{% include "seminar/archiv/submenu.html" %}
{% endblock %}
{% block menu_archiv %}selected{% endblock %}

View file

@ -0,0 +1,8 @@
{% extends "seminar/archiv/base.html" %}
{% block submenu %}
{% with "cisla" as selected %}
{% include "seminar/archiv/submenu.html" %}
{% endwith %}
{% endblock %}

View file

@ -0,0 +1,8 @@
{% extends "seminar/archiv/base.html" %}
{% block submenu %}
{% with "temata" as selected %}
{% include "seminar/archiv/submenu.html" %}
{% endwith %}
{% endblock %}

View file

@ -0,0 +1,10 @@
{% extends "seminar/archiv/base.html" %}
{% block menu_archiv %}selected{% endblock %}
{% block submenu %}
{% with "ulohy" as selected %}
{% include "seminar/archiv/submenu.html" %}
{% endwith %}
{% endblock %}

View file

@ -1,4 +1,4 @@
{% extends "seminar/archiv/base.html" %}
{% extends "seminar/archiv/base_cisla.html" %}
{% block content %}
<div>

View file

@ -1,4 +1,4 @@
{% extends "seminar/archiv/base.html" %}
{% extends "seminar/archiv/base_cisla.html" %}
{% block content %}
<div>

View file

@ -1,4 +1,4 @@
{% extends "seminar/archiv/base.html" %}
{% extends "seminar/archiv/base_ulohy.html" %}
{% load comments %}

View file

@ -1,4 +1,4 @@
{% extends "seminar/archiv/base.html" %}
{% extends "seminar/archiv/base_cisla.html" %}
{% block content %}
<div>

View file

@ -1,9 +1,9 @@
{% with "/archiv" as cesta %}
<ul>
<li><a href="{{cesta}}/cisla/">Čísla</a>
<li><a href="{{cesta}}/temata/">Témata</a>
<li><a href="{{cesta}}/ulohy/">Úlohy</a>
<li class="{% if selected == "cisla" %}selected{% endif %}"><a href="{{cesta}}/cisla/">Čísla</a>
<li class="{% if selected == "temata" %}selected{% endif %}"><a href="{{cesta}}/temata/">Témata</a>
<li class="{% if selected == "ulohy" %}selected{% endif %}"><a href="{{cesta}}/ulohy/">Úlohy</a>
</ul>
{% endwith %}

View file

@ -1,4 +1,4 @@
{% extends "seminar/archiv/base.html" %}
{% extends "seminar/archiv/base_temata.html" %}
{% block content %}
<h2>