kpsul/gestioncof/cms/templates/cofcms/base_nav.html

21 lines
593 B
HTML
Raw Normal View History

2018-10-14 16:29:26 +02:00
{% load wagtailcore_tags i18n cofcms_tags %}
<ul class="menu">
{% for item in menu_items %}
<li class="{{ item.active_class }}">
2018-10-14 16:29:26 +02:00
{% if item.link_page %}
<a href="{% pageurl item.link_page %}">
2020-08-29 21:34:28 +02:00
{% if item.link_page.seo_title %}
{{ item.link_page.seo_title }}
{% else %}
{{ item.link_page.title }}
{% endif %}
2018-10-14 16:29:26 +02:00
</a>
{% else %}
<a href="{{ item.href }}">
{{ item.text }}
</a>
{% endif %}
</li>
{% endfor %}
</ul>