mirror of
https://framagit.org/tom79/fediplan.git
synced 2025-04-05 05:31:48 +02:00
Move logout item to the end of the menu
This commit is contained in:
parent
4ffe74a73a
commit
60a2895b1f
1 changed files with 5 additions and 4 deletions
|
@ -33,10 +33,6 @@
|
|||
<li class="nav-item {% if app.request.attributes.get('_route') == 'scheduled' %} active {% endif %}">
|
||||
<a class="nav-link" href="{{ path('scheduled') }}">{{ 'common.scheduled'|trans }}</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ path('logout') }}" tabindex="-1" >{{ 'common.logout'|trans }}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li class="nav-item {% if app.request.attributes.get('_route') == 'about' %} active {% endif %}">
|
||||
<a class="nav-link" href="{{ path('about') }}" tabindex="-1" >{{ 'common.about'|trans }}</a>
|
||||
|
@ -71,6 +67,11 @@
|
|||
<li><a class="dropdown-item" href="{{ path(route, {'_locale':'uk' }) }}">Украïна</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
{% if is_granted('ROLE_USER') %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ path('logout') }}" tabindex="-1" >{{ 'common.logout'|trans }}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue