2018-02-22 09:22:53 +00:00
|
|
|
<div *ngIf="customCSS" [innerHTML]="customCSS"></div>
|
|
|
|
|
2023-10-09 08:07:03 +00:00
|
|
|
<a i18n class="visually-hidden-focusable skip-to-content" href="#content" (click)="$event.preventDefault(); mainContent.focus()">Skip to main content</a>
|
|
|
|
|
2023-10-09 13:33:19 +00:00
|
|
|
<my-hotkeys-cheat-sheet (hotkeysModalStateChange)="onHotkeysModalStateChange($event)"></my-hotkeys-cheat-sheet>
|
2018-08-28 07:32:03 +00:00
|
|
|
|
2023-10-06 08:36:54 +00:00
|
|
|
<div
|
|
|
|
class="peertube-container"
|
|
|
|
[ngClass]="{ 'user-logged-in': isUserLoggedIn(), 'user-not-logged-in': !isUserLoggedIn(), 'hotkeys-modal-opened': hotkeysModalOpened }"
|
|
|
|
>
|
2023-10-06 08:47:39 +00:00
|
|
|
<header class="root-header">
|
2017-04-26 19:22:00 +00:00
|
|
|
|
2020-04-30 20:33:27 +00:00
|
|
|
<div class="top-left-block">
|
2023-10-06 08:08:51 +00:00
|
|
|
<button
|
2023-10-06 12:44:44 +00:00
|
|
|
class="border-0 p-0" [title]="getToggleTitle()" (click)="menu.toggleMenu()" (keyup.enter)="menu.toggleMenu()"
|
2023-10-06 08:08:51 +00:00
|
|
|
[ariaExpanded]="menu.isMenuDisplayed" aria-controls="left-menu"
|
|
|
|
>
|
2023-03-15 13:20:26 +00:00
|
|
|
<span class="icon icon-menu"></span>
|
2023-10-06 08:08:51 +00:00
|
|
|
</button>
|
2017-04-26 19:22:00 +00:00
|
|
|
|
2023-06-05 08:33:35 +00:00
|
|
|
<a class="peertube-title c-hand" [routerLink]="getDefaultRoute()" [queryParams]="getDefaultRouteQuery()">
|
2017-12-01 12:08:46 +00:00
|
|
|
<span class="icon icon-logo"></span>
|
2018-02-20 13:16:32 +00:00
|
|
|
<span class="instance-name">{{ instanceName }}</span>
|
2017-12-01 12:08:46 +00:00
|
|
|
</a>
|
2017-04-26 19:22:00 +00:00
|
|
|
</div>
|
|
|
|
|
2022-07-18 13:01:47 +00:00
|
|
|
<div class="root-header-right">
|
2020-02-03 13:04:42 +00:00
|
|
|
<my-header class="w-100 d-flex justify-content-end"></my-header>
|
2017-12-01 08:20:19 +00:00
|
|
|
</div>
|
2023-10-06 08:47:39 +00:00
|
|
|
</header>
|
2017-04-26 19:22:00 +00:00
|
|
|
|
2017-12-01 12:08:46 +00:00
|
|
|
<div class="sub-header-container">
|
2023-10-06 08:08:51 +00:00
|
|
|
<my-menu id="left-menu" role="navigation" aria-label="Main menu" i18n-ariaLabel [hidden]="!menu.isMenuDisplayed"></my-menu>
|
2016-03-14 21:16:43 +00:00
|
|
|
|
2023-10-09 08:07:03 +00:00
|
|
|
<main #mainContent tabindex="-1" id="content" class="main-col" [ngClass]="{ expanded: menu.isMenuDisplayed === false }">
|
2016-03-14 21:16:43 +00:00
|
|
|
|
2017-04-21 09:06:33 +00:00
|
|
|
<div class="main-row">
|
2020-05-28 09:15:38 +00:00
|
|
|
|
|
|
|
<div *ngIf="broadcastMessage" class="broadcast-message alert" [ngClass]="broadcastMessage.class">
|
|
|
|
<div [innerHTML]="broadcastMessage.message"></div>
|
|
|
|
|
2023-10-05 14:30:08 +00:00
|
|
|
<button
|
|
|
|
*ngIf="broadcastMessage.dismissable" (click)="hideBroadcastMessage()" class="border-0" title="Close this message" i18n-title>
|
|
|
|
<my-global-icon iconName="cross"></my-global-icon>
|
|
|
|
</button>
|
2020-05-28 09:15:38 +00:00
|
|
|
</div>
|
|
|
|
|
2017-04-21 09:06:33 +00:00
|
|
|
<router-outlet></router-outlet>
|
|
|
|
</div>
|
2023-10-06 08:47:39 +00:00
|
|
|
</main>
|
2016-08-23 09:45:28 +00:00
|
|
|
</div>
|
2016-03-14 12:50:19 +00:00
|
|
|
</div>
|
2017-04-21 09:06:33 +00:00
|
|
|
|
2023-10-06 09:29:01 +00:00
|
|
|
<ngx-loading-bar [includeSpinner]="false" [color]="'var(--mainColor)'"></ngx-loading-bar>
|
2019-01-16 15:05:40 +00:00
|
|
|
|
2017-04-21 09:06:33 +00:00
|
|
|
<my-confirm></my-confirm>
|
2019-01-16 15:05:40 +00:00
|
|
|
|
2018-12-19 15:04:34 +00:00
|
|
|
<p-toast position="bottom-right">
|
|
|
|
<ng-template let-message pTemplate="message">
|
2018-12-20 10:18:29 +00:00
|
|
|
<div class="notification-block">
|
2023-10-06 08:17:44 +00:00
|
|
|
<div class="message" [attr.role]="getNotificationRole(message)">
|
2018-12-20 10:18:29 +00:00
|
|
|
<h3>{{ message.summary }}</h3>
|
|
|
|
<p>{{ message.detail }}</p>
|
|
|
|
</div>
|
2018-12-19 15:04:34 +00:00
|
|
|
|
2023-10-06 12:44:44 +00:00
|
|
|
<button class="border-0 p-0">
|
2023-10-06 08:17:44 +00:00
|
|
|
<my-global-icon [iconName]="getNotificationIcon(message)"></my-global-icon>
|
|
|
|
</button>
|
2018-12-20 10:18:29 +00:00
|
|
|
</div>
|
2018-12-19 15:04:34 +00:00
|
|
|
</ng-template>
|
|
|
|
</p-toast>
|
2019-08-28 12:40:06 +00:00
|
|
|
|
2021-08-26 06:22:33 +00:00
|
|
|
<ng-container *ngIf="isUserLoggedIn()">
|
2021-08-27 08:15:55 +00:00
|
|
|
<my-account-setup-warning-modal #accountSetupWarningModal></my-account-setup-warning-modal>
|
|
|
|
<my-admin-welcome-modal #adminWelcomeModal></my-admin-welcome-modal>
|
2019-08-28 12:40:06 +00:00
|
|
|
<my-instance-config-warning-modal #instanceConfigWarningModal></my-instance-config-warning-modal>
|
2021-08-26 06:22:33 +00:00
|
|
|
</ng-container>
|
2020-04-15 13:35:41 +00:00
|
|
|
|
|
|
|
<my-custom-modal #customModal></my-custom-modal>
|