diff options
Diffstat (limited to 'python/templates/includes/navigation/secondary')
-rw-r--r-- | python/templates/includes/navigation/secondary | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/python/templates/includes/navigation/secondary b/python/templates/includes/navigation/secondary index 60898ab..ad11ad5 100644 --- a/python/templates/includes/navigation/secondary +++ b/python/templates/includes/navigation/secondary @@ -1,5 +1,10 @@ -{% for node in subpages %} - {% if page.PageId == node.PageId.PageId %} - <li><a href="{{node.url }}">{% if node.navtitle %}{{ node.navtitle }}{% else %}{{node.title}}{% endif %}</a></li> +{% for meny in submenys %} + {% if meny.view %} + {% if subactivemeny == meny.name %} + <li class="active"> + {% else %} + <li class=""> {% endif %} + <a href="{% url meny.url %}">{{meny.title}}</a></li> + {% endif %} {% endfor %} |