Improving navbar UX.
This commit is contained in:
parent
c1f743ab27
commit
60dacda829
|
@ -31,15 +31,11 @@
|
|||
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
|
||||
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
|
||||
<ul class="navbar-nav mr-auto">
|
||||
<li class="nav-item dropdown">
|
||||
<a href="#" class="nav-link dropdown-toggle" role="button" data-toggle="dropdown">
|
||||
<i class="fas fa-user"></i> {{ app.user.username }}
|
||||
</a>
|
||||
<div class="dropdown-menu">
|
||||
<a href="{{ path('user_account') }}" class="dropdown-item"><i class="fas fa-wrench"></i> Profile</a>
|
||||
<a href="{{ logout_path('main') }}" class="dropdown-item"><i class="fas fa-sign-out-alt"></i> Logout</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="nav-item"><a class="nav-link" href="{{ path('user_account') }}"><i class="fas fa-user"></i> {{ app.user.username }}</a></li>
|
||||
</ul>
|
||||
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<li class="nav-item"><a class="nav-link" href="{{ logout_path('main') }}"><i class="fas fa-sign-out-alt"></i> Logout</a></li>
|
||||
</ul>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue