PeerTube/client/src/app/app.component.html

69 lines
2.2 KiB
HTML
Raw Normal View History

<div *ngIf="customCSS" [innerHTML]="customCSS"></div>
<my-hotkeys-cheatsheet></my-hotkeys-cheatsheet>
2020-03-18 04:11:59 -05:00
<div class="peertube-container" [ngClass]="{ 'user-logged-in': isUserLoggedIn(), 'user-not-logged-in': !isUserLoggedIn() }">
2017-12-01 06:08:46 -06:00
<div class="header">
2017-04-26 14:22:00 -05:00
<div class="top-left-block">
<span class="icon icon-menu" (click)="menu.toggleMenu()"></span>
2017-04-26 14:22:00 -05:00
<a class="peertube-title" [routerLink]="defaultRoute">
2017-12-01 06:08:46 -06:00
<span class="icon icon-logo"></span>
<span class="instance-name">{{ instanceName }}</span>
2017-12-01 06:08:46 -06:00
</a>
2017-04-26 14:22:00 -05:00
</div>
<div class="header-right">
<my-header class="w-100 d-flex justify-content-end"></my-header>
2017-12-01 02:20:19 -06:00
</div>
2017-04-26 14:22:00 -05:00
</div>
2017-12-01 06:08:46 -06:00
<div class="sub-header-container">
<my-menu *ngIf="menu.isMenuDisplayed"></my-menu>
2016-03-14 16:16:43 -05:00
<div id="content" tabindex="-1" class="main-col" [ngClass]="{ expanded: menu.isMenuDisplayed === false }">
2016-03-14 16:16:43 -05:00
2017-04-21 04:06:33 -05:00
<div class="main-row">
2020-05-28 04:15:38 -05:00
<div *ngIf="broadcastMessage" class="broadcast-message alert" [ngClass]="broadcastMessage.class">
<div [innerHTML]="broadcastMessage.message"></div>
<my-global-icon
*ngIf="broadcastMessage.dismissable" (click)="hideBroadcastMessage()"
iconName="cross" role="button" title="Close this message" i18n-title
></my-global-icon>
</div>
2017-04-21 04:06:33 -05:00
<router-outlet></router-outlet>
</div>
2016-08-23 04:45:28 -05:00
</div>
</div>
2016-03-14 07:50:19 -05:00
</div>
2017-04-21 04:06:33 -05:00
2018-09-07 15:46:11 -05:00
<ngx-loading-bar [includeSpinner]="false"></ngx-loading-bar>
2017-04-21 04:06:33 -05:00
<my-confirm></my-confirm>
<p-toast position="bottom-right">
<ng-template let-message pTemplate="message">
2018-12-20 04:18:29 -06:00
<div class="notification-block">
<div class="message">
<h3>{{ message.summary }}</h3>
<p>{{ message.detail }}</p>
</div>
2018-12-20 04:18:29 -06:00
<span *ngIf="message.severity === 'success'" class="glyphicon glyphicon-ok"></span>
<span *ngIf="message.severity === 'info'" class="glyphicon glyphicon-info-sign"></span>
<span *ngIf="message.severity === 'error'" class="glyphicon glyphicon-remove"></span>
</div>
</ng-template>
</p-toast>
2019-08-28 07:40:06 -05:00
<ng-template [ngIf]="isUserLoggedIn()">
<my-welcome-modal #welcomeModal></my-welcome-modal>
<my-instance-config-warning-modal #instanceConfigWarningModal></my-instance-config-warning-modal>
</ng-template>
<my-custom-modal #customModal></my-custom-modal>