forked from DGNum/gestioCOF
I18n des menus
This commit is contained in:
parent
1e3850bb6b
commit
128a9e32c0
1 changed files with 10 additions and 3 deletions
|
@ -1,9 +1,16 @@
|
||||||
|
{% load wagtailcore_tags i18n cofcms_tags %}
|
||||||
<ul class="menu">
|
<ul class="menu">
|
||||||
{% for item in menu_items %}
|
{% for item in menu_items %}
|
||||||
<li class="{{ item.active_class }}">
|
<li class="{{ item.active_class }}">
|
||||||
<a href="{{ item.href }}">
|
{% if item.link_page %}
|
||||||
{{ item.text }}
|
<a href="{% pageurl item.link_page.specific %}">
|
||||||
</a>
|
{{ item.link_page.specific.title }}
|
||||||
|
</a>
|
||||||
|
{% else %}
|
||||||
|
<a href="{{ item.href }}">
|
||||||
|
{{ item.text }}
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue