Commit 155872a2 authored by dj3c1t's avatar dj3c1t

glyphicons menu user

parent 282f1528
......@@ -95,7 +95,7 @@ body {
background-color: #f1f1f1;
}
#sidebar ul.nav .glyphicon {
ul.nav .glyphicon {
padding-right: 1em;
}
......
......@@ -4,18 +4,34 @@
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-user" aria-hidden="true"></span>
Bienvenue {{ app.user.username }}
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
{% if is_granted('ROLE_USER') %}
<li><a href="{{ path('account') }}">Compte</a></li>
<li>
<a href="{{ path('account') }}">
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
Compte
</a>
</li>
{% endif %}
{% if is_granted('ROLE_ADMIN') %}
<li><a href="{{ path('admin') }}">Admin</a></li>
<li>
<a href="{{ path('admin') }}">
<span class="glyphicon glyphicon-wrench" aria-hidden="true"></span>
Admin
</a>
</li>
{% endif %}
<li role="separator" class="divider"></li>
<li><a href="{{ path('logout') }}">Déconnexion</a></li>
<li>
<a href="{{ path('logout') }}">
<span class="glyphicon glyphicon-log-out" aria-hidden="true"></span>
Déconnexion
</a>
</li>
</ul>
</li>
......@@ -23,6 +39,7 @@
<li>
<a href="{{ path('login') }}" role="button">
<span class="glyphicon glyphicon-log-in" aria-hidden="true"></span>
Connexion
</a>
</li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment