2 ============LICENSE_START==========================================
4 ===================================================================
5 Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6 ===================================================================
8 Unless otherwise specified, all software contained herein is licensed
9 under the Apache License, Version 2.0 (the "License");
10 you may not use this software except in compliance with the License.
11 You may obtain a copy of the License at
13 http://www.apache.org/licenses/LICENSE-2.0
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
21 Unless otherwise specified, all documentation contained herein is licensed
22 under the Creative Commons License, Attribution 4.0 Intl. (the "License");
23 you may not use this documentation except in compliance with the License.
24 You may obtain a copy of the License at
26 https://creativecommons.org/licenses/by/4.0/
28 Unless required by applicable law or agreed to in writing, documentation
29 distributed under the License is distributed on an "AS IS" BASIS,
30 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 See the License for the specific language governing permissions and
32 limitations under the License.
34 ============LICENSE_END============================================
39 <div style="bottom: tabBottom; display: flex; height: 100%; overflow: hidden">
40 <nav class="navbar navbar-expand-lg fixed-top">
41 <a class="navbar-brand" href=""> <img src="{{brandLogoImagePath}}" style="width:14%"/> {{brandName}}</a>
42 <div class="header-menu-display">
43 <app-header-menu></app-header-menu>
45 <button class="navbar-toggler" type="button" (click)="toggleSidebar()">
46 <i class="icon ion-md-menu" style="color:white;"></i>
48 <div class="collapse navbar-collapse">
49 <ul class="navbar-nav ml-auto">
50 <app-global-search></app-global-search>
51 <li class="nav-item dropdown" ngbDropdown>
52 <a href="javascript:void(0)" class="nav-link" ngbDropdownToggle>
53 <i class="icon ion-md-bulb"></i> <b class="caret"></b><span class="sr-only"></span>
55 <div class="custom-dropdown-item" ngbDropdownMenu>
57 <li class="dropdown-divider"></li>
60 <li class="nav-item dropdown" ngbDropdown>
61 <a href="javascript:void(0)" class="nav-link" ngbDropdownToggle>
62 <i class="icon ion-md-flag"></i> <b class="caret"></b><span class="sr-only"></span>
64 <div class="dropdown-menu-right" ngbDropdownMenu>
65 <a style="margin-left: 8%;" id="application-role" [routerLink]="['/recentNotifications']"
66 href="javascript:void(0);">
67 {{ 'View All Recent Notifications' }} </a>
68 <li class="dropdown-divider"></li>
71 <li class="nav-item dropdown" ngbDropdown>
72 <a href="javascript:void(0)" class="nav-link" ngbDropdownToggle>
73 <i class="icon ion-md-person"></i> {{firstName}} <b class="caret"></b>
75 <div class="dropdown-menu-right" ngbDropdownMenu>
76 <li class="dropdown-item" style="font-weight: lighter">
77 {{firstName}}, {{lastName}}
79 <li class="dropdown-item" *ngIf=(!isSystemUser)>
80 <span class="dropdown-item-name"> {{ 'Email'}}: </span>
82 <span class="dropdown-item-value">
87 <li class="dropdown-item">
88 <span class="dropdown-item-name" *ngIf=(!isSystemUser)> {{ 'User Id' }}: </span>
89 <span class="dropdown-item-name" *ngIf=(isSystemUser)> {{ 'System Id' }}: </span>
91 <span class="dropdown-item-value">
92 {{loginSnippetUserid}}
96 <li class="dropdown-item">
97 <span class="dropdown-item-name"> {{ 'Last login' }}: </span>
99 <span class="dropdown-item-value">
100 {{lastLogin | date:'medium'}}
104 <li class="custom-display-item">
105 <a (click)="getUserApplicationRoles()" href="javascript:void(0);"><span><i class="icon ion-md-add-circle-outline"
106 [ngClass]="{true: 'icon ion-md-add-circle-outline', false: 'icon ion-md-remove-circle-outline'}[ !displayUserAppRoles]"></i>
107 {{ 'Applications and Roles' }} </span></a>
108 <span class="ecomp-spinner" *ngIf="isLoading"></span>
110 <div class="custom-display-item approles" [hidden]="!displayUserAppRoles">
111 <div *ngFor="let ua of userapproles ; index as i">
112 <div class="reg-userApp-value">
113 <span class="dropdown-item-name">{{ua.App}}:</span>
115 <div *ngFor="let role of ua.Roles ; index as i" class="reg-userAppRoles-value">
116 <span *ngIf="role.indexOf('global_')!=-1" id="required" style="color: Red;" visible="false">
117 *</span> <span class="dropdown-item-value">{{role}}</span>
122 <div class = "language-dropdown">
123 <span class="dropdown-item-name"> {{ 'Language' }}: </span>
124 <select #langSelect (change)="setLanguage(langSelect.value)">
125 <option *ngFor="let lang of languages" [value]="lang.languageId" [selected]="lang.selected">
126 {{ lang.languageAlias }}
131 <div id="reg-logout-div" >
132 <button type="button" class="btn btn-primary" (click)="allAppsLogout()">
133 <i class="icon ion-md-log-out"></i> {{ 'Log Out' }} </button></div>