]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/menu/menu.component.html
Add a link to 'My profile' in the dropdown
[github/Chocobozzz/PeerTube.git] / client / src / app / menu / menu.component.html
CommitLineData
b33f657c
C
1<menu>
2 <div *ngIf="isLoggedIn" class="logged-in-block">
d62cf323 3 <a routerLink="/my-account/settings">
d3e91a5f 4 <img [src]="user.accountAvatarUrl" alt="Avatar" />
cf117aaa 5 </a>
2295ce6c 6
b33f657c 7 <div class="logged-in-info">
ed56ad11 8 <a routerLink="/my-account/settings" class="logged-in-username">{{ user.account?.displayName }}</a>
b33f657c
C
9 <div class="logged-in-email">{{ user.email }}</div>
10 </div>
11
12 <div class="logged-in-more" dropdown placement="right" container="body">
13 <span class="glyphicon glyphicon-option-vertical" dropdownToggle></span>
14
15 <ul *dropdownMenu class="dropdown-menu">
16 <li>
29ca3b36
D
17 <a i18n [routerLink]="[ '/accounts', user.account.id ]" class="dropdown-item" title="My profile">
18 My profile
19 </a>
20
ed56ad11
C
21 <a routerLink="/my-account/settings" class="dropdown-item" title="My settings">
22 My settings
b2731bff
C
23 </a>
24
b33f657c
C
25 <a (click)="logout($event)" class="dropdown-item" title="Log out" href="#">
26 Log out
27 </a>
28 </li>
29 </ul>
30 </div>
31 </div>
32
33 <div *ngIf="!isLoggedIn" class="button-block">
26c6ee80 34 <a routerLink="/login" class="login-button">Login</a>
b33f657c
C
35 <a *ngIf="isRegistrationAllowed()" routerLink="/signup" class="create-account-button">Create an account</a>
36 </div>
37
38 <div class="panel-block">
39 <div class="block-title">Videos</div>
40
9bf9d2a5 41 <a routerLink="/videos/trending" routerLinkActive="active">
b33f657c
C
42 <span class="icon icon-videos-trending"></span>
43 Trending
44 </a>
45
9bf9d2a5 46 <a routerLink="/videos/recently-added" routerLinkActive="active">
b33f657c
C
47 <span class="icon icon-videos-recently-added"></span>
48 Recently added
49 </a>
066e94c5
C
50
51 <a routerLink="/videos/local" routerLinkActive="active">
52 <span class="icon icon-videos-local"></span>
53 Local
54 </a>
b33f657c
C
55 </div>
56
36f9424f 57 <div class="panel-block">
b33f657c
C
58 <div class="block-title">More</div>
59
36f9424f 60 <a *ngIf="userHasAdminAccess" [routerLink]="getFirstAdminRouteAvailable()" routerLinkActive="active">
b33f657c
C
61 <span class="icon icon-administration"></span>
62 Administration
63 </a>
36f9424f
C
64
65 <a routerLink="/about" routerLinkActive="active">
66 <span class="icon icon-about"></span>
67 About
68 </a>
b33f657c
C
69 </div>
70</menu>