-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.html.twig
39 lines (36 loc) · 1.83 KB
/
header.html.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<header class="navbar navbar-dark bg-dark sticky-top">
<button class="btn text-light d-md-none" type="button" data-bs-toggle="collapse" data-bs-target="#sidebarMenu" aria-controls="sidebarMenu" aria-expanded="false" aria-label="Toggle navigation">
<i class="fas fa-bars"></i>
</button>
<div class="text-light d-md-block d-sm-none"></div>
<ul class="nav nav-pills">
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
<li class="nav-item dropdown">
<button type="button" class="text-light nav-link dropdown-toggle" id="user-profile" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-user-circle"></i>
</button>
<div class="dropdown-menu" aria-labelledby="userProfile">
<div class="ps-1 pe-1">
<div class="profile-picture-container d-inline-block">
<img class="profile-picture" src="{{ app.user.gravatarUrl(80) }}" alt="User profile picture" />
</div>
<div class="user-information d-inline-block">
<h5>{{ app.user.username }}</h5>
<h6>{{ app.user.email }}</h6>
</div>
</div>
<div class="dropdown-divider"></div>
<a class="dropdown-item"
href="{{ path('user_view', {id: app.user.idString}) }}">
Settings
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item"
href="{{ path('app_logout') }}">
Logout
</a>
</div>
</li>
{% endif %}
</ul>
</header>