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