2022-01-27 18:25:58 +01:00
|
|
|
<nav class="navbar navbar-expand navbar-dark" [ngClass]="{ 'nav-background-alt': selfHosted }">
|
2018-06-08 23:08:19 +02:00
|
|
|
<div class="container">
|
2019-10-11 16:35:24 +02:00
|
|
|
<a class="navbar-brand" routerLink="/" appA11yTitle="{{ 'pageTitle' | i18n: 'Bitwarden' }}">
|
2022-01-27 18:25:58 +01:00
|
|
|
<i class="bwi bwi-shield" aria-hidden="true"></i>
|
2021-12-17 15:57:11 +01:00
|
|
|
</a>
|
2018-06-08 23:08:19 +02:00
|
|
|
<div class="collapse navbar-collapse">
|
|
|
|
<ul class="navbar-nav">
|
2021-07-21 19:53:33 +02:00
|
|
|
<li class="nav-item" routerLinkActive="active">
|
2022-05-09 14:21:52 +02:00
|
|
|
<a class="nav-link" routerLink="/vault">{{ "vaults" | i18n }}</a>
|
2021-12-17 15:57:11 +01:00
|
|
|
</li>
|
2021-07-21 19:53:33 +02:00
|
|
|
<li class="nav-item" routerLinkActive="active">
|
2021-02-25 18:23:52 +01:00
|
|
|
<a class="nav-link" routerLink="/sends">{{ "send" | i18n }}</a>
|
2021-12-17 15:57:11 +01:00
|
|
|
</li>
|
2021-07-21 19:53:33 +02:00
|
|
|
<ng-container *ngIf="providers.length >= 1">
|
|
|
|
<li class="nav-item" routerLinkActive="active" *ngIf="providers.length == 1">
|
|
|
|
<a class="nav-link" [routerLink]="['/providers', providers[0].id]">{{
|
|
|
|
"provider" | i18n
|
2021-12-17 15:57:11 +01:00
|
|
|
}}</a>
|
|
|
|
</li>
|
2021-07-21 19:53:33 +02:00
|
|
|
<li class="nav-item" routerLinkActive="active" *ngIf="providers.length > 1">
|
|
|
|
<a class="nav-link" routerLink="/providers">{{ "provider" | i18n }}</a>
|
2021-12-17 15:57:11 +01:00
|
|
|
</li>
|
2021-07-21 19:53:33 +02:00
|
|
|
</ng-container>
|
2018-06-08 23:08:19 +02:00
|
|
|
<li class="nav-item" routerLinkActive="active">
|
2018-06-22 04:40:01 +02:00
|
|
|
<a class="nav-link" routerLink="/tools">{{ "tools" | i18n }}</a>
|
2021-12-17 15:57:11 +01:00
|
|
|
</li>
|
2022-03-29 21:55:47 +02:00
|
|
|
<li class="nav-item" routerLinkActive="active">
|
|
|
|
<a class="nav-link" routerLink="/reports">{{ "reports" | i18n }}</a>
|
|
|
|
</li>
|
2022-05-09 14:21:52 +02:00
|
|
|
<li *ngIf="organizations.length >= 1" class="nav-item" routerLinkActive="active">
|
|
|
|
<a class="nav-link" [routerLink]="['/organizations', organizations[0].id]">{{
|
|
|
|
"organizations" | i18n
|
|
|
|
}}</a>
|
2021-12-17 15:57:11 +01:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2018-06-08 23:08:19 +02:00
|
|
|
<ul class="navbar-nav flex-row ml-md-auto d-none d-md-flex">
|
2022-05-09 14:21:52 +02:00
|
|
|
<li>
|
|
|
|
<button
|
|
|
|
[bitMenuTriggerFor]="accountMenu"
|
|
|
|
class="tw-border-0 tw-bg-transparent tw-text-contrast tw-opacity-70 hover:tw-opacity-90"
|
2021-12-17 15:57:11 +01:00
|
|
|
>
|
2022-01-27 18:25:58 +01:00
|
|
|
<i class="bwi bwi-user-circle bwi-lg" aria-hidden="true"></i>
|
2022-05-09 14:21:52 +02:00
|
|
|
<i class="bwi bwi-caret-down bwi-sm" aria-hidden="true"></i>
|
|
|
|
</button>
|
|
|
|
<bit-menu class="dropdown-menu" #accountMenu>
|
|
|
|
<div class="tw-max-w-[300px] tw-min-w-[200px] tw-flex tw-flex-col">
|
|
|
|
<div
|
|
|
|
class="tw-flex tw-items-center tw-leading-tight tw-text-info tw-py-1 tw-px-4"
|
|
|
|
*ngIf="name"
|
|
|
|
appStopProp
|
|
|
|
>
|
|
|
|
<app-avatar
|
|
|
|
[data]="name"
|
|
|
|
[email]="email"
|
|
|
|
size="25"
|
|
|
|
fontSize="14"
|
|
|
|
[circle]="true"
|
|
|
|
></app-avatar>
|
|
|
|
<div class="tw-ml-2 tw-block tw-overflow-hidden tw-whitespace-nowrap">
|
|
|
|
<span>{{ "loggedInAs" | i18n }}</span>
|
|
|
|
<small class="tw-text-muted tw-block tw-overflow-hidden tw-whitespace-nowrap">{{
|
|
|
|
name
|
|
|
|
}}</small>
|
|
|
|
</div>
|
2021-07-21 19:53:33 +02:00
|
|
|
</div>
|
2022-05-09 14:21:52 +02:00
|
|
|
<bit-menu-divider></bit-menu-divider>
|
|
|
|
<a bit-menu-item routerLink="/settings/account">
|
|
|
|
<i class="bwi bwi-fw bwi-user" aria-hidden="true"></i>
|
|
|
|
{{ "accountSettings" | i18n }}
|
|
|
|
</a>
|
|
|
|
<a bit-menu-item href="https://bitwarden.com/help/" target="_blank" rel="noopener">
|
|
|
|
<i class="bwi bwi-fw bwi-question-circle" aria-hidden="true"></i>
|
|
|
|
{{ "getHelp" | i18n }}
|
|
|
|
</a>
|
|
|
|
<a bit-menu-item href="https://bitwarden.com/download/" target="_blank" rel="noopener">
|
|
|
|
<i class="bwi bwi-fw bwi-download" aria-hidden="true"></i>
|
|
|
|
{{ "getApps" | i18n }}
|
|
|
|
</a>
|
|
|
|
<bit-menu-divider></bit-menu-divider>
|
|
|
|
<button bit-menu-item type="button" (click)="lock()">
|
|
|
|
<i class="bwi bwi-fw bwi-lock" aria-hidden="true"></i>
|
|
|
|
{{ "lockNow" | i18n }}
|
|
|
|
</button>
|
|
|
|
<button bit-menu-item type="button" (click)="logOut()">
|
|
|
|
<i class="bwi bwi-fw bwi-sign-out" aria-hidden="true"></i>
|
|
|
|
{{ "logOut" | i18n }}
|
|
|
|
</button>
|
2021-12-17 15:57:11 +01:00
|
|
|
</div>
|
2022-05-09 14:21:52 +02:00
|
|
|
</bit-menu>
|
2019-10-11 17:22:21 +02:00
|
|
|
</li>
|
2018-07-06 16:00:09 +02:00
|
|
|
</ul>
|
2018-06-08 23:08:19 +02:00
|
|
|
</div>
|
|
|
|
</nav>
|