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

                       




                          
                          
                                                         



           

                   
                                    
                               







                                                                       




                                                         
                                                                             


                                                                

            
                                                  
                                                          
                                                         

                                                     
 



                                                          


            
                                                           









                                     
<div class="container">

  <header class="row">
    <div class="col-md-2">
      <h4>PeerTube</h4>
    </div>

    <div class="col-md-9">
      <my-search (search)="onSearch($event)"></my-search>
    </div>
  </header>


  <div class="row">

    <menu class="col-md-2 col-xs-3">
      <div class="panel_block">
        <div id="panel_user_login" class="panel_button">
          <span class="glyphicon glyphicon-user"></span>
          <a *ngIf="!isLoggedIn" [routerLink]="['UserLogin']">Login</a>
          <a *ngIf="isLoggedIn" (click)="logout()">Logout</a>
        </div>
      </div>

      <div class="panel_block">
        <div id="panel_get_videos" class="panel_button">
          <span class="glyphicon glyphicon-list"></span>
          <a [routerLink]="['VideosList']">Get videos</a>
        </div>

        <div id="panel_upload_video" class="panel_button" *ngIf="isLoggedIn">
          <span class="glyphicon glyphicon-cloud-upload"></span>
          <a [routerLink]="['VideosAdd']">Upload a video</a>
        </div>
      </div>

      <div class="panel_block" *ngIf="isLoggedIn">
        <div id="panel_make_friends" class="panel_button">
          <span class="glyphicon glyphicon-cloud"></span>
          <a (click)='makeFriends()'>Make friends</a>
        </div>

        <div id="panel_quit_friends" class="panel_button">
          <span class="glyphicon glyphicon-plane"></span>
          <a (click)='quitFriends()'>Quit friends</a>
        </div>
      </div>
    </menu>

    <div class="col-md-9 col-xs-8 router_outler_container">
      <router-outlet></router-outlet>
    </div>

  </div>


  <footer>
    PeerTube, CopyLeft 2015-2016
  </footer>
</div>