2022-05-03 14:52:04 +02:00
|
|
|
<header>
|
|
|
|
<nav class="navbar navbar-expand-md navbar-dark fixed-top navbar-top {{ is_granted('ROLE_PREVIOUS_ADMIN') ? 'bg-warning' : 'bg-dark' }}">
|
2021-06-01 18:48:20 +02:00
|
|
|
|
2022-05-03 14:52:04 +02:00
|
|
|
<a class="navbar-brand" href="{{ path('app_main') }}">
|
|
|
|
<img src="{{ asset('build/images/24unix/24_logo_bg_64x64.png') }}" alt="24unix.net" id="site-logo">
|
|
|
|
</a>
|
2021-06-01 18:48:20 +02:00
|
|
|
|
2022-05-03 14:52:04 +02:00
|
|
|
<button class="navbar-toggler border-0" type="button" data-toggle="collapse" data-target="#CollapsingNavbar">
|
|
|
|
☰
|
|
|
|
</button>
|
2021-06-01 18:48:20 +02:00
|
|
|
|
2022-05-03 14:52:04 +02:00
|
|
|
<div class="collapse navbar-collapse" id="CollapsingNavbar">
|
|
|
|
<ul class="navbar-nav ms-auto">
|
|
|
|
{% if is_granted('ROLE_PREVIOUS_ADMIN') %}
|
|
|
|
<li class="align-bottom">
|
|
|
|
<a class="dropdown-item" href="{{ path('app_main', { '_switch_user': '_exit'}) }}">Exit
|
|
|
|
Impersonation</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
<!--
|
|
|
|
<li>
|
|
|
|
<form class="d-flex">
|
|
|
|
<input class="form-control me-2 my-2" type="search" placeholder="Search" aria-label="Search">
|
|
|
|
<button class="btn" type="submit">Search</button>
|
|
|
|
</form>
|
|
|
|
</li>
|
|
|
|
-->
|
|
|
|
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
|
|
|
|
<li class="nav-item dropdown me-auto">
|
|
|
|
<button type="button" id="navbar-dropdown" data-bs-target="#dropdown-menu"
|
|
|
|
data-bs-toggle="dropdown"
|
|
|
|
class="btn btn-primary dropdown-toggle ml-auto mb-2 button-login">
|
|
|
|
{{ app.user.username }}
|
|
|
|
</button>
|
2021-06-13 13:23:56 +02:00
|
|
|
|
2022-05-03 14:52:04 +02:00
|
|
|
<div class="dropdown-menu dropdown-menu-dark dropdown-menu-end" id="dropdown-menu"
|
|
|
|
aria-labelledby="navbar-dropdown">
|
|
|
|
<a class="dropdown-item"
|
|
|
|
href="{{ path('app_profile_edit', { 'username': app.user.username }) }}">
|
|
|
|
<span class="fa fa-lg fa-fw fa-user" aria-hidden="true"></span>
|
|
|
|
Profile</a>
|
|
|
|
<a class="dropdown-item" href="#">
|
|
|
|
<span class="fa fa-lg fa-fw fa-wrench" aria-hidden="true"></span>
|
|
|
|
Settings</a>
|
2021-06-13 13:23:56 +02:00
|
|
|
<div class="dropdown-divider"></div>
|
2022-05-03 14:52:04 +02:00
|
|
|
{% if is_granted('ROLE_ADMIN') %}
|
|
|
|
<a class="dropdown-item" href="{{ path('app_list_user') }}">
|
|
|
|
<span class="fa fa-lg fa-fw fa-users" aria-hidden="true"></span>
|
|
|
|
Users
|
|
|
|
</a>
|
|
|
|
<a class="dropdown-item" href="{{ path('admin') }}">
|
|
|
|
<span class="fa fa-lg fa-fw fa-cog" aria-hidden="true"></span>
|
|
|
|
Administration
|
|
|
|
</a>
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
{% endif %}
|
2021-06-13 13:23:56 +02:00
|
|
|
|
2022-05-03 14:52:04 +02:00
|
|
|
<a class="dropdown-item" href="{{ path('app_logout') }}">
|
|
|
|
<span class="fa fa-lg fa-fw fa-sign-out" aria-hidden="true"></span>
|
|
|
|
Logout
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% else %}
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="btn btn-primary button-login" href="{{ path('app_login') }}" role="button"
|
|
|
|
id="buttonLogin">
|
|
|
|
<span class="fa fa-sign-in fa-lg fa-fw" aria-hidden="true"></span>Log In
|
2021-06-13 13:23:56 +02:00
|
|
|
</a>
|
2022-05-03 14:52:04 +02:00
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</header>
|
2021-06-01 18:48:20 +02:00
|
|
|
|
|
|
|
|