]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/app.component.html
Add visitor settings, rework logged-in dropdown (#2514)
[github/Chocobozzz/PeerTube.git] / client / src / app / app.component.html
1 <div *ngIf="customCSS" [innerHTML]="customCSS"></div>
2
3 <my-hotkeys-cheatsheet></my-hotkeys-cheatsheet>
4
5 <div [ngClass]="{ 'user-logged-in': isUserLoggedIn(), 'user-not-logged-in': !isUserLoggedIn() }">
6 <div class="header">
7
8 <div class="top-left-block" [ngClass]="{ 'border-bottom': isMenuDisplayed === false }">
9 <span class="icon icon-menu" (click)="toggleMenu()"></span>
10
11 <a class="peertube-title" [routerLink]="defaultRoute" title="Homepage" i18n-title>
12 <span class="icon icon-logo"></span>
13 <span class="instance-name">{{ instanceName }}</span>
14 </a>
15 </div>
16
17 <div class="header-right" [ngClass]="{ 'border-bottom': isMenuDisplayed === false }">
18 <my-header class="w-100 d-flex justify-content-end"></my-header>
19 </div>
20 </div>
21
22 <div class="sub-header-container">
23 <my-menu *ngIf="isMenuDisplayed"></my-menu>
24
25 <div id="content" tabindex="-1" class="main-col container-fluid" [ngClass]="{ expanded: isMenuDisplayed === false }">
26
27 <div class="main-row">
28 <router-outlet></router-outlet>
29 </div>
30 </div>
31 </div>
32 </div>
33
34 <ngx-loading-bar [includeSpinner]="false"></ngx-loading-bar>
35
36 <my-confirm></my-confirm>
37
38 <p-toast position="bottom-right">
39 <ng-template let-message pTemplate="message">
40 <div class="notification-block">
41 <div class="message">
42 <h3>{{ message.summary }}</h3>
43 <p>{{ message.detail }}</p>
44 </div>
45
46 <span *ngIf="message.severity === 'success'" class="glyphicon glyphicon-ok"></span>
47 <span *ngIf="message.severity === 'info'" class="glyphicon glyphicon-info-sign"></span>
48 <span *ngIf="message.severity === 'error'" class="glyphicon glyphicon-remove"></span>
49 </div>
50 </ng-template>
51 </p-toast>
52
53 <ng-template [ngIf]="isUserLoggedIn()">
54 <my-welcome-modal #welcomeModal></my-welcome-modal>
55 <my-instance-config-warning-modal #instanceConfigWarningModal></my-instance-config-warning-modal>
56 </ng-template>