aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+video-channels/video-channels.component.html
blob: b3ea19768c97ee49eed454da7a8599aca3094f87 (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
<div *ngIf="videoChannel" class="row">
  <div class="sub-menu">

    <div class="actor">
      <img [src]="videoChannel.avatarUrl" alt="Avatar" />

      <div class="actor-info">
        <div class="actor-names">
          <div class="actor-display-name">{{ videoChannel.displayName }}</div>
          <div class="actor-name">
            <span>{{ videoChannel.nameWithHost }}</span>
            <button [cdkCopyToClipboard]="videoChannel.nameWithHostForced" (click)="activateCopiedMessage()"
                    class="btn btn-outline-secondary btn-sm copy-button"
            >
              <span class="glyphicon glyphicon-duplicate"></span>
            </button>
          </div>
        </div>

        <div class="right-buttons">
          <a *ngIf="isChannelManageable && !isInSmallView" [routerLink]="[ '/my-library/video-channels/update', videoChannel.nameWithHost ]" class="btn btn-outline-tertiary mr-2" i18n>
            Manage channel
          </a>
          <my-subscribe-button #subscribeButton [videoChannels]="[videoChannel]"></my-subscribe-button>
        </div>

        <div class="actor-lower">
          <div class="actor-followers" i18n>{videoChannel.followersCount, plural, =1 {1 subscriber} other {{{ videoChannel.followersCount }} subscribers}}</div>

          <a [routerLink]="[ '/accounts', videoChannel.ownerBy ]" i18n-title title="Go the owner account page" class="actor-owner">
            <span class="d-inline-flex"><span i18n class="d-none d-sm-block mr-1">Created by</span>{{ videoChannel.ownerBy }}</span>
            <img [src]="videoChannel.ownerAvatarUrl" alt="Owner account avatar" />
          </a>
        </div>
      </div>
    </div>

    <div class="links w-100">
      <ng-template #linkTemplate let-item="item">
        <a [routerLink]="item.routerLink" routerLinkActive="active" class="title-page">{{ item.label }}</a>
      </ng-template>

      <list-overflow [items]="links" [itemTemplate]="linkTemplate"></list-overflow>
    </div>
  </div>

  <div class="margin-content">
    <router-outlet></router-outlet>
  </div>
</div>