International wagtail urls
This commit is contained in:
parent
88e911ff9d
commit
59116f2d46
7 changed files with 148 additions and 98 deletions
|
@ -1,4 +1,4 @@
|
|||
{% load static menu_tags wagtailuserbar %}
|
||||
{% load static menu_tags wagtailuserbar i18n wagtailcore_tags %}
|
||||
|
||||
<!doctype html>
|
||||
<html>
|
||||
|
@ -21,6 +21,20 @@
|
|||
<section class="bottom-menu">
|
||||
<nav>
|
||||
{% flat_menu "cof-nav-int" template="cofcms/base_nav.html" apply_active_classes=True %}
|
||||
|
||||
{% get_current_language as curlang %}
|
||||
|
||||
<div class="lang-select">
|
||||
{% if curlang == 'en' %}
|
||||
{% language 'fr' %}
|
||||
<a href="{% pageurl self %}" title="Français"><img src="{% static "cofcms/images/fr.png" %}"></a>
|
||||
{% endlanguage %}
|
||||
{% else %}
|
||||
{% language 'en' %}
|
||||
<a href="{% pageurl self %}" title="English"><img src="{% static "cofcms/images/en.png" %}"></a>
|
||||
{% endlanguage %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</nav>
|
||||
</section>
|
||||
</header>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue