-
Notifications
You must be signed in to change notification settings - Fork 532
Expand file tree
/
Copy pathuser-menu.component.html
More file actions
36 lines (34 loc) · 1.54 KB
/
user-menu.component.html
File metadata and controls
36 lines (34 loc) · 1.54 KB
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
@if ((loading$ | async)) {
<ds-loading></ds-loading>
}
@if ((loading$ | async) !== true) {
<ul class="user-menu" role="menu"
[ngClass]="inExpandableNavbar ? 'user-menu-mobile pb-2 mb-2 border-bottom' : 'user-menu-dropdown'"
[attr.aria-label]="'nav.user-profile-menu-and-logout' |translate" id="user-menu-dropdown">
<li class="ds-menu-item-wrapper username-email-wrapper" role="presentation">
<span class="username-wrapper">{{dsoNameService.getName(user$ | async)}}<br></span>
<span class="email-wrapper">{{(user$ | async)?.email}}</span>
</li>
<li class="ds-menu-item-wrapper" role="presentation" (click)="onMenuItemClick()">
<a class="ds-menu-item" role="menuitem"
[routerLink]="[profileRoute]"
routerLinkActive="active">{{'nav.profile' | translate}}</a>
</li>
<li class="ds-menu-item-wrapper" role="presentation" (click)="onMenuItemClick()">
<a class="ds-menu-item" role="menuitem"
[routerLink]="[mydspaceRoute]"
routerLinkActive="active">{{'nav.mydspace' | translate}}</a>
</li>
<li class="ds-menu-item-wrapper" role="presentation" (click)="onMenuItemClick()">
<a class="ds-menu-item" role="menuitem"
[routerLink]="[subscriptionsRoute]"
routerLinkActive="active">{{'nav.subscriptions' | translate}}</a>
</li>
@if (!inExpandableNavbar) {
<li class="dropdown-divider" aria-hidden="true"></li>
<li class="ds-menu-item-wrapper" role="presentation">
<ds-log-out data-test="log-out-component"></ds-log-out>
</li>
}
</ul>
}