aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/menu/menu.component.html
blob: bb0caaef56469c887aff24c61078ee5808fbd707 (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
<menu>
  <div *ngIf="isLoggedIn" class="logged-in-block">
    <div class="logged-in-info">
      <div class="logged-in-username">{{ user.username  }}</div>
      <div class="logged-in-email">{{ user.email }}</div>
    </div>

    <div class="logged-in-more" dropdown placement="right" container="body">
      <span class="glyphicon glyphicon-option-vertical" dropdownToggle></span>

      <ul *dropdownMenu class="dropdown-menu">
        <li>
          <a (click)="logout($event)" class="dropdown-item" title="Log out" href="#">
            Log out
          </a>
        </li>
      </ul>
    </div>
  </div>

  <div *ngIf="!isLoggedIn" class="button-block">
    <a routerLink="/login"class="login-button">Login</a>
    <a *ngIf="isRegistrationAllowed()" routerLink="/signup" class="create-account-button">Create an account</a>
  </div>

  <div class="panel-block">
    <div class="block-title">Videos</div>

    <a routerLink="/videos/list" routerLinkActive="active">
      <span class="icon icon-videos-trending"></span>
      Trending
    </a>

    <a routerLink="/videos/list" routerLinkActive="active">
      <span class="icon icon-videos-recently-added"></span>
      Recently added
    </a>
  </div>

  <div *ngIf="userHasAdminAccess" class="panel-block">
    <div class="block-title">More</div>

    <a [routerLink]="getFirstAdminRouteAvailable()" routerLinkActive="active">
      <span class="icon icon-administration"></span>
      Administration
    </a>
  </div>
</menu>