Added a link to translated pages to menu
rodzic
2e80c0f9b3
commit
750f709279
|
@ -1,17 +1,18 @@
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load menu_tags %}
|
{% load menu_tags %}
|
||||||
{% load wagtailcore_tags %}
|
{% load wagtailcore_tags %}
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
<div class="d-flex flex-column flex-shrink-0 p-3 mr-5" style="width: 280px;">
|
<div class="d-flex flex-column flex-shrink-0 p-3 mr-5" style="width: 280px;">
|
||||||
<img src="{% static 'images/icons/las_ruinas_PL.png' %}" class="rounded mx-auto d-block mt-3"/>
|
<img src="{% static 'images/icons/las_ruinas_PL.png' %}" class="rounded mx-auto d-block mt-3"/>
|
||||||
<hr>
|
<hr>
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
|
|
||||||
{% for translation in page.get_translations.live %}
|
{% for translation in page.get_translations.live %}
|
||||||
<a href="{% pageurl translation %}" rel="alternate" hreflang="{{ translation.locale.language_code }}">
|
<a href= {% pageurl translation.specific %}{{translation.locale.language_code }} rel="alternate" hreflang="{{ translation.locale.language_code }}">
|
||||||
{{ translation.locale.language_name_local }}
|
{{ translation.locale.language_code|language_name }}
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% for item in menu_items %}
|
{% for item in menu_items %}
|
||||||
<li class="{{ item.active_class }}">
|
<li class="{{ item.active_class }}">
|
||||||
|
|
Ładowanie…
Reference in New Issue