From 0f4044d7c04b71da3192a8ca08f71cabe86c9cc5 Mon Sep 17 00:00:00 2001 From: "Bc. Petr Pecha" Date: Fri, 11 Sep 2015 17:40:37 +0200 Subject: [PATCH] Podbarveni submenu uvod --- mamweb/templates/base.html | 12 ++++++------ mamweb/templates/flatpages/default.html | 16 +++++++++++++++- .../templates/seminar/cojemam/organizatori.html | 7 +++++++ seminar/templates/seminar/cojemam/submenu.html | 8 ++++---- 4 files changed, 32 insertions(+), 11 deletions(-) diff --git a/mamweb/templates/base.html b/mamweb/templates/base.html index c7c6dd1a..e930820c 100644 --- a/mamweb/templates/base.html +++ b/mamweb/templates/base.html @@ -59,12 +59,12 @@ diff --git a/mamweb/templates/flatpages/default.html b/mamweb/templates/flatpages/default.html index d7c9aab9..05ca082d 100644 --- a/mamweb/templates/flatpages/default.html +++ b/mamweb/templates/flatpages/default.html @@ -17,7 +17,21 @@ {# nahraj spravne submenu #} {% block submenu %} {% if "/co-je-MaM/" in flatpage.url %} - {% include "seminar/cojemam/submenu.html" %} + {% if "/uvod/" in flatpage.url %} + {% with "uvod" as selected %} + {% include "seminar/cojemam/submenu.html" %} + {% endwith %} + {% elif "jak-resit" in flatpage.url %} + {% with "jak-resit" as selected %} + {% include "seminar/cojemam/submenu.html" %} + {% endwith %} + {% elif "FAQ" in flatpage.url %} + {% with "FAQ" as selected %} + {% include "seminar/cojemam/submenu.html" %} + {% endwith %} + {% else %} + {% include "seminar/cojemam/submenu.html" %} + {% endif %} {% endif %} {% if "/soustredeni/" in flatpage.url %} {% include "seminar/soustredeni/submenu.html" %} diff --git a/seminar/templates/seminar/cojemam/organizatori.html b/seminar/templates/seminar/cojemam/organizatori.html index d3b79982..f384dc10 100644 --- a/seminar/templates/seminar/cojemam/organizatori.html +++ b/seminar/templates/seminar/cojemam/organizatori.html @@ -7,6 +7,13 @@ {% endif %} {% endblock%}{% endblock%} +{% block menu_uvod %}selected{% endblock %} +{% block submenu %} + {% with "org" as selected %} + {% include "seminar/cojemam/submenu.html" %} + {% endwith %} +{% endblock %} + {% block content %}
{% if not aktivni %} diff --git a/seminar/templates/seminar/cojemam/submenu.html b/seminar/templates/seminar/cojemam/submenu.html index f130e583..2fe62d2f 100644 --- a/seminar/templates/seminar/cojemam/submenu.html +++ b/seminar/templates/seminar/cojemam/submenu.html @@ -1,10 +1,10 @@ {% with "/co-je-MaM" as cesta %} {% endwith %}