Browse Source

Podbarveni submenu archiv

remotes/origin/cislopdf
Bc. Petr Pecha 9 years ago
parent
commit
85ca7d602b
  1. 8
      mamweb/templates/flatpages/default.html
  2. 4
      seminar/templates/seminar/archiv/base.html
  3. 8
      seminar/templates/seminar/archiv/base_cisla.html
  4. 8
      seminar/templates/seminar/archiv/base_temata.html
  5. 10
      seminar/templates/seminar/archiv/base_ulohy.html
  6. 2
      seminar/templates/seminar/archiv/cisla.html
  7. 2
      seminar/templates/seminar/archiv/cislo.html
  8. 2
      seminar/templates/seminar/archiv/problem.html
  9. 2
      seminar/templates/seminar/archiv/rocnik.html
  10. 6
      seminar/templates/seminar/archiv/submenu.html
  11. 2
      seminar/templates/seminar/archiv/temata.html

8
mamweb/templates/flatpages/default.html

@ -84,7 +84,13 @@
{% endif %} {% endif %}
{# archiv #} {# archiv #}
{% if "/archiv/" in flatpage.url %} {% 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 %} {% endif %}
{% endblock %} {% endblock %}

4
seminar/templates/seminar/archiv/base.html

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

8
seminar/templates/seminar/archiv/base_cisla.html

@ -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

@ -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

@ -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 %}

2
seminar/templates/seminar/archiv/cisla.html

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

2
seminar/templates/seminar/archiv/cislo.html

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

2
seminar/templates/seminar/archiv/problem.html

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

2
seminar/templates/seminar/archiv/rocnik.html

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

6
seminar/templates/seminar/archiv/submenu.html

@ -1,9 +1,9 @@
{% with "/archiv" as cesta %} {% with "/archiv" as cesta %}
<ul> <ul>
<li><a href="{{cesta}}/cisla/">Čísla</a> <li class="{% if selected == "cisla" %}selected{% endif %}"><a href="{{cesta}}/cisla/">Čísla</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}}/ulohy/">Úlohy</a> <li class="{% if selected == "ulohy" %}selected{% endif %}"><a href="{{cesta}}/ulohy/">Úlohy</a>
</ul> </ul>
{% endwith %} {% endwith %}

2
seminar/templates/seminar/archiv/temata.html

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

Loading…
Cancel
Save