aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.component.html
blob: 7743124d4a1e5fc035bafa9aeaa1df70d766c26e (plain) (blame)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<div *ngIf="customCSS" [innerHTML]="customCSS"></div>

<my-hotkeys-cheatsheet></my-hotkeys-cheatsheet>

<div [ngClass]="{ 'user-logged-in': isUserLoggedIn(), 'user-not-logged-in': !isUserLoggedIn() }">
  <div class="header">

    <div class="top-left-block" [ngClass]="{ 'border-bottom': isMenuDisplayed === false }">
      <span class="icon icon-menu" (click)="toggleMenu()"></span>

      <a class="peertube-title" [routerLink]="defaultRoute" title="Homepage" i18n-title>
        <span class="icon icon-logo"></span>
        <span class="instance-name">{{ instanceName }}</span>
      </a>
    </div>

    <div class="header-right" [ngClass]="{ 'border-bottom': isMenuDisplayed === false }">
      <my-header class="w-100 d-flex justify-content-end"></my-header>
    </div>
  </div>

  <div class="sub-header-container">
    <my-menu *ngIf="isMenuDisplayed"></my-menu>

    <div id="content" tabindex="-1" class="main-col container-fluid" [ngClass]="{ expanded: isMenuDisplayed === false }">

      <div class="main-row">
        <router-outlet></router-outlet>
      </div>

      <footer class="row">
        <a href="https://joinpeertube.org" title="PeerTube website" target="_blank" rel="noopener noreferrer" i18n-title>Powered by PeerTube</a>&nbsp;-&nbsp;
        <a href="https://github.com/Chocobozzz/PeerTube/blob/develop/LICENSE" title="PeerTube license" target="_blank" rel="noopener noreferrer" i18n-title>CopyLeft 2015-2020</a>
      </footer>
    </div>
  </div>
</div>

<ngx-loading-bar [includeSpinner]="false"></ngx-loading-bar>

<my-confirm></my-confirm>

<p-toast position="bottom-right">
  <ng-template let-message pTemplate="message">
    <div class="notification-block">
      <div class="message">
        <h3>{{ message.summary }}</h3>
        <p>{{ message.detail }}</p>
      </div>

      <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>

<ng-template [ngIf]="isUserLoggedIn()">
  <my-welcome-modal #welcomeModal></my-welcome-modal>
  <my-instance-config-warning-modal #instanceConfigWarningModal></my-instance-config-warning-modal>
</ng-template>