--- /dev/null
+$module: ".nav-tree";
+
+#{$module} {
+
+ padding: 0;
+ margin: 0;
+ list-style-type: none;
+
+ &__item {
+
+ margin-top: 2px;
+
+ }
+
+ &__link {
+
+ display: block;
+ color: white;
+ background: $color-black-light;
+ padding: 4px 20px;
+
+ @include font-size(xs);
+ @include typeface(sans-serif);
+
+ &.active {
+ background: $color-main;
+ color: $color-black-light;
+ padding: 8px 20px;
+ @include font-size(s);
+ }
+
+ &--sub {
+ @include padding-left(2);
+ background: rgba($color_main, 0.6);
+ color: $color-black-light;
+ }
+
+ }
+
+}
{% extends "base.html" %}
-{% load i18n mezzanine_tags keyword_tags featured_tags %}
+{% load i18n mezzanine_tags keyword_tags featured_tags pages_tags %}
{% block meta_title %}{{ page.meta_title }}{% endblock %}
</div>
<div class="row">
- <div class="col-lg-8 col-lg-push-2">
+ <div class="col-lg-2">
+ {% page_menu "pages/menus/current_tree.html" %}
+ </div>
+ <div class="col-lg-8">
{% editable page.basicpage.content %}
{{ page.basicpage.content|richtext_filters|safe }}
{% endeditable %}
--- /dev/null
+{% load i18n pages_tags %}
+
+{% spaceless %}
+{% if page_branch_in_menu %}
+<ul class="nav-tree nav-tree--level-{{ branch_level }}">
+ {% if branch_level == 0 %}
+ {% for page in page_branch %}
+ {% if page.in_menu %}
+ {% if page.is_primary and page.is_current_or_ascendant %}
+ <li class="nav-tree__item">
+ <a class="nav-tree__link{% if page.is_current %} active{% endif %}" href="{{ page.get_absolute_url }}">Accueil</a>
+ </li>
+ {% endif %}
+ {% if page.is_current_or_ascendant %}
+ {% if page.has_children_in_menu %}
+ {% page_menu page %}
+ {% endif %}
+ {% endif %}
+ {% endif %}
+ {% endfor %}
+ {% endif %}
+ {% if branch_level == 1 %}
+ {% for page in page_branch %}
+ <li class="nav-tree__item">
+ <a class="nav-tree__link{% if page.is_current or page.is_current_or_ascendant %} active{% endif %}" href="{{ page.get_absolute_url }}">{{ page.title }}</a>
+ {% if page.is_current_or_ascendant and page.has_children_in_menu %}
+ <ul class="nav-tree nav-tree--level-{{ branch_level }}">
+ {% page_menu page %}
+ </ul>
+ {% endif %}
+ </li>
+ {% endfor %}
+ {% endif %}
+ {% if branch_level == 2 %}
+ {% for page in page_branch %}
+ <li class="nav-tree__item nav-tree__item--sub">
+ <a class="nav-tree__link nav-tree__link--sub" href="{{ page.get_absolute_url }}">{{ page.title }}</a>
+ </li>
+ {% endfor %}
+ {% endif %}
+</ul>
+{% endif %}
+{% endspaceless %}