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 %}
{# 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 %}

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save