Podbarveni submenu archiv
This commit is contained in:
parent
a5f816240c
commit
85ca7d602b
11 changed files with 42 additions and 12 deletions
|
@ -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 %}
|
||||
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block submenu %}
|
||||
{% include "seminar/archiv/submenu.html" %}
|
||||
{% endblock %}
|
||||
{% block menu_archiv %}selected{% endblock %}
|
||||
|
||||
|
|
8
seminar/templates/seminar/archiv/base_cisla.html
Normal file
8
seminar/templates/seminar/archiv/base_cisla.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{% extends "seminar/archiv/base.html" %}
|
||||
|
||||
{% block submenu %}
|
||||
{% with "cisla" as selected %}
|
||||
{% include "seminar/archiv/submenu.html" %}
|
||||
{% endwith %}
|
||||
{% endblock %}
|
||||
|
8
seminar/templates/seminar/archiv/base_temata.html
Normal file
8
seminar/templates/seminar/archiv/base_temata.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{% extends "seminar/archiv/base.html" %}
|
||||
|
||||
{% block submenu %}
|
||||
{% with "temata" as selected %}
|
||||
{% include "seminar/archiv/submenu.html" %}
|
||||
{% endwith %}
|
||||
{% endblock %}
|
||||
|
10
seminar/templates/seminar/archiv/base_ulohy.html
Normal file
10
seminar/templates/seminar/archiv/base_ulohy.html
Normal 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 %}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "seminar/archiv/base.html" %}
|
||||
{% extends "seminar/archiv/base_cisla.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "seminar/archiv/base.html" %}
|
||||
{% extends "seminar/archiv/base_cisla.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "seminar/archiv/base.html" %}
|
||||
{% extends "seminar/archiv/base_ulohy.html" %}
|
||||
|
||||
{% load comments %}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "seminar/archiv/base.html" %}
|
||||
{% extends "seminar/archiv/base_cisla.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div>
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "seminar/archiv/base.html" %}
|
||||
{% extends "seminar/archiv/base_temata.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h2>
|
||||
|
|
Loading…
Reference in a new issue