mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-23 04:14:36 +02:00
Update the navbar on logout
This commit is contained in:
parent
ed87f81a69
commit
055752a24d
4 changed files with 47 additions and 47 deletions
|
@ -48,7 +48,7 @@
|
|||
class="fa fa-info-circle fa-fw"
|
||||
aria-hidden="true"></i> {% trans %}user.info.label{% endtrans %}</a>
|
||||
<li role="separator" class="dropdown-divider"></li>
|
||||
<a class="dropdown-item" href="{{ path('logout') }}" data-turbo="false"><i
|
||||
<a class="dropdown-item" href="{{ path('logout') }}" data-turbo="false" data-turbo-frame="_top"><i
|
||||
class="fa fa-sign-out-alt fa-fw"
|
||||
aria-hidden="true"></i> {% trans %}user.logout{% endtrans %}</a>
|
||||
{% else %}
|
||||
|
@ -69,7 +69,7 @@
|
|||
<h6 class="dropdown-header">{% trans %}user.language_select{% endtrans %}</h6>
|
||||
<div id="locale-select-menu">
|
||||
{% for locale in locale_menu %}
|
||||
<a class="dropdown-item" data-turbo="false"
|
||||
<a class="dropdown-item" data-turbo="false" data-turbo-frame="_top"
|
||||
href="{{ path(app.request.attributes.get('_route'),
|
||||
app.request.attributes.get('_route_params')|merge({'_locale': locale})) }}">
|
||||
{{ locale|language_name }} ({{ locale|upper }})</a>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<form action="{{ path('parts_search') }}" class="d-flex my-lg-0 ms-auto" method="get">
|
||||
<form id="navbar-search-form" action="{{ path('parts_search') }}" class="d-flex my-lg-0 ms-auto" method="get" data-turbo-permanent>
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-light dropdown-toggle my-2" type="button" id="navbar-search-options" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" data-bs-auto-close="false">
|
||||
{% trans %}search.options.label{% endtrans %}
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
<body data-base-url="{{ path('homepage', {'_locale': app.request.locale}) }}" data-locale="{{ app.request.locale|default("en")|slice(0,2) }}">
|
||||
{% block body %}
|
||||
<header>
|
||||
<turbo-frame id="navbar-frame" target="content" data-turbo-action="advance" data-turbo-permanent>
|
||||
<turbo-frame id="navbar-frame" target="content" data-turbo-action="advance">
|
||||
{% include "_navbar.html.twig" %}
|
||||
</turbo-frame>
|
||||
</header>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue