aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/app.component.html
blob: 03f7e88ed6a9249ad5fa4ce827dbff3e2125ac00 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                     
                                               
 
                                                                                                 
                      
 
                                                                                           
                                                                 
 
                                                                          
                                            
                                                             
          
          
                                                                                         
                             
          
        
                                    
                                               
 
                                                                                                                         
 

                                       
 
                          
                                                                                                                                                                              
                                                                                                                                                                       
               
          
      
 
                                                            
                                                                             
<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 id="peertube-title" [routerLink]="defaultRoute" title="Homepage">
        <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></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">PeerTube v{{ serverVersion }}{{ serverCommit }}</a>&nbsp;-&nbsp;
        <a href="https://github.com/Chocobozzz/PeerTube/blob/develop/LICENSE" title="PeerTube license" target="_blank" rel="noopener noreferrer">CopyLeft 2015-2018</a>
      </footer>
    </div>
  </div>
</div>

<ngx-loading-bar [includeSpinner]="false"></ngx-loading-bar>
<my-confirm></my-confirm>
<simple-notifications [options]="notificationOptions"></simple-notifications>