-
Notifications
You must be signed in to change notification settings - Fork 586
Expand file tree
/
Copy pathmain.component.html
More file actions
37 lines (36 loc) · 1.56 KB
/
main.component.html
File metadata and controls
37 lines (36 loc) · 1.56 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
35
36
37
<div class="wrapper">
<div #sidebar class="sidebar show">
<div class="sidebar-logo">
<img class="logo" src="../../assets/images/logohq.png" alt="OpenBullet 2" />
</div>
<div class="sidebar-version" *ngIf="updateInfo !== null">
<a href="javascript:void(0);" (click)="showChangelog()"
[pTooltip]="updateInfo.isUpdateAvailable ? 'Update available! Click here to learn more' : ''">
<fa-icon *ngIf="updateInfo.isUpdateAvailable" class="color-custom mr-1" [icon]="faExclamationTriangle"
[fixedWidth]="true"></fa-icon>
<span class="version">v{{updateInfo.currentVersion}} [{{updateInfo.currentVersionType}}]</span>
</a>
</div>
<div class="sidebar-menu">
<app-menu></app-menu>
</div>
<div *ngIf="canLogout()" class="sidebar-logout">
<button class="button button-transparent" (click)="logout()">
<fa-icon [icon]="faRightFromBracket" [fixedWidth]="true"></fa-icon>
Log out
</button>
</div>
</div>
<div class="content">
<div class="mb-4 topbar">
<button class="button button-transparent p-0 sidebar-toggle-button" title="Toggle Sidebar" (click)="toggleSidebar()">
<i class="pi pi-fw pi-bars"></i>
</button>
</div>
<router-outlet></router-outlet>
</div>
</div>
<p-dialog #changelogModal header="Changelog" [(visible)]="changelogModalVisible" [modal]="true"
[style]="{ width: '50vw' }" [dismissableMask]="true" [closeOnEscape]="true" [draggable]="false" [resizable]="false">
<app-changelog #changelogComponent [updateInfo]="updateInfo" />
</p-dialog>