Fixed menu translation
ci/woodpecker/push/build Pipeline was successful Szczegóły
ci/woodpecker/pr/build Pipeline was successful Szczegóły

fix/menu_translation
mtyton 2023-10-31 23:35:36 +01:00
rodzic c762438439
commit 80ddd65ea6
5 zmienionych plików z 21 dodań i 15 usunięć

Wyświetl plik

@ -39,15 +39,15 @@
<div class="container">
<div class="row">
{% if navbar_position == 'top' %}
<div class="col-md-12 mt-5 ml-2">
{% main_menu max_levels=3 template="menu/custom_main_menu.html" %}
</div>
{% with size=12 %}
{% include 'includes/menu_block.html' %}
{% endwith %}
{% endif %}
{% if navbar_position == 'left' %}
<div class="col-md-3 mt-5 ml-2">
{% main_menu max_levels=3 template="menu/custom_main_menu.html" %}
</div>
{% with size=3 %}
{% include 'includes/menu_block.html' %}
{% endwith %}
{% endif %}
<div class="col-md-9 mt-5 ml-2">
{% for message in messages %}
@ -58,9 +58,9 @@
{% block content %}{% endblock %}
</div>
{% if navbar_position == 'right' %}
<div class="col-md-3 mt-5 ml-2">
{% main_menu max_levels=3 template="menu/custom_main_menu.html" %}
</div>
{% with size=3 %}
{% include 'includes/menu_block.html' %}
{% endwith %}
{% endif %}
</div>
<div class="row">

Wyświetl plik

@ -0,0 +1,6 @@
{% load menu_tags %}
{% load i18n %}
<div class="col-md-{{size}} mt-5 ml-2">
{% main_menu max_levels=3 template="menu/custom_main_menu.html" use_specific=3%}
</div>

Wyświetl plik

@ -11,13 +11,13 @@
{% for item in menu_items %}
<li class="{{ item.active_class }}">
<a href="{{ item.href }}">{{ item.text }}</a>
<a href="{% pageurl item.link_page.localized %}">{{ item.link_page.localized }}</a>
{% if item.has_children_in_menu %}
<button class="btn btn-toggle" data-bs-target="#ddtoggle_{{ item.link_page.pk }}" data-bs-toggle="collapse"
aria-expanded={% if item.active_class %}"true" {% else %} "false" {% endif %}
aria-controls="#ddtoggle_{{ item.link_page.pk }}">
<img src = "{% static 'images/icons/caret-down.svg' %}" alt="&or;"/> </button>
{% sub_menu item template="menu/custom_submenu.html" %}
{% sub_menu item.link_page template="menu/custom_submenu.html" use_specific=3 %}
{% endif %}
</li>
{% endfor %}

Wyświetl plik

@ -2,6 +2,6 @@
<ul class={% if item.active_class %} "sub-menu collapse show fw-normal pb-1 small" {% else %} "sub-menu collapse fw-normal pb-1 small" {% endif %}
id="ddtoggle_{{ item.link_page.pk }}">
{% for sub_item in menu_items %}
<li><a href="{{ sub_item.href }}" class="{{ sub_item.active_class }}">{{ sub_item.text }}</a></li>
<li><a href="{{ sub_item.localized.url }}" class="{{ sub_item.active_class }}">{{sub_item.localized}}</a></li>
{% endfor %}
</ul>

Wyświetl plik

@ -20,9 +20,9 @@ services:
environment:
- RABBITMQ_DEFAULT_USER
- RABBITMQ_DEFAULT_PASS
ports:
- "5672:5672" # We forward this port because it's useful for debugging
- "15672:15672" # Here, we can access RabbitMQ management plugin
# ports:
# - "5672:5672" # We forward this port because it's useful for debugging
# - "15672:15672" # Here, we can access RabbitMQ management plugin
smtp-server:
image: mailhog/mailhog