-<div class="container">
-
- <header class="row">
- <div class="col-md-2">
- <h4>PeerTube</h4>
- </div>
-
- <div class="col-md-9">
- <my-search></my-search>
- </div>
- </header>
+<div *ngIf="customCSS" [innerHTML]="customCSS"></div>
+<div>
+ <div class="header">
- <div class="row">
+ <div class="top-left-block" [ngClass]="{ 'border-bottom': isMenuDisplayed === false }">
+ <span class="icon icon-menu" (click)="toggleMenu()"></span>
- <menu class="col-md-2 col-sm-3 col-xs-3">
- <div class="panel-block">
- <div id="panel-user-login" class="panel-button">
- <span class="hidden-xs glyphicon glyphicon-user"></span>
- <a *ngIf="!isLoggedIn" [routerLink]="['/login']">Login</a>
- <a *ngIf="isLoggedIn" (click)="logout()">Logout</a>
- </div>
- </div>
+ <a id="peertube-title" [routerLink]="defaultRoute" title="Homepage">
+ <span class="icon icon-logo"></span>
+ <span class="instance-name">{{ instanceName }}</span>
+ </a>
+ </div>
- <div class="panel-block">
- <div id="panel-get-videos" class="panel-button">
- <span class="hidden-xs glyphicon glyphicon-list"></span>
- <a [routerLink]="['/videos/list']">Get videos</a>
- </div>
+ <div class="header-right">
+ <my-header></my-header>
+ </div>
+ </div>
- <div id="panel-upload-video" class="panel-button" *ngIf="isLoggedIn">
- <span class="hidden-xs glyphicon glyphicon-cloud-upload"></span>
- <a [routerLink]="['/videos/add']">Upload a video</a>
- </div>
- </div>
+ <div class="sub-header-container">
+ <div *ngIf="isMenuDisplayed" class="title-menu-left">
+ <my-menu></my-menu>
+ </div>
- <div class="panel-block" *ngIf="isLoggedIn">
- <div id="panel-make-friends" class="panel-button">
- <span class="hidden-xs glyphicon glyphicon-cloud"></span>
- <a (click)='makeFriends()'>Make friends</a>
- </div>
+ <div class="main-col container-fluid" [ngClass]="getMainColClasses()">
- <div id="panel-quit-friends" class="panel-button">
- <span class="hidden-xs glyphicon glyphicon-plane"></span>
- <a (click)='quitFriends()'>Quit friends</a>
- </div>
+ <div class="main-row">
+ <router-outlet></router-outlet>
</div>
- </menu>
- <div class="col-md-9 col-sm-8 col-xs-8 router-outlet-container">
- <router-outlet></router-outlet>
+ <footer class="row">
+ <a href="https://joinpeertube.org" title="PeerTube website" target="_blank" rel="noopener noreferrer">PeerTube v{{ serverVersion }}</a> -
+ <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>
-
-
- <footer>
- PeerTube, CopyLeft 2015-2016
- </footer>
</div>
+
+<ngx-loading-bar [includeSpinner]="false" color="#F1680D"></ngx-loading-bar>
+<my-confirm></my-confirm>
+<simple-notifications [options]="notificationOptions"></simple-notifications>