Merge branch 'open-api-clients' into develop
[oweals/peertube.git] / client / src / app / +video-channels / video-channels.component.html
1 <div *ngIf="videoChannel" class="row">
2   <div class="sub-menu">
3
4     <div class="actor">
5       <img [src]="videoChannel.avatarUrl" alt="Avatar" />
6
7       <div class="actor-info">
8         <div class="actor-names">
9           <div class="actor-display-name">{{ videoChannel.displayName }}</div>
10           <div class="actor-name">
11             <span>{{ videoChannel.nameWithHost }}</span>
12             <button [cdkCopyToClipboard]="videoChannel.nameWithHost" (click)="activateCopiedMessage()"
13                     class="btn btn-outline-secondary btn-sm copy-button"
14             >
15               <span class="glyphicon glyphicon-copy"></span>
16             </button>
17           </div>
18         </div>
19
20         <div class="right-buttons">
21           <a *ngIf="isChannelManageable" [routerLink]="[ '/my-account/video-channels/update', videoChannel.nameWithHost ]" class="btn btn-outline-tertiary mr-2" i18n>Manage</a>
22           <my-subscribe-button #subscribeButton [videoChannels]="[videoChannel]"></my-subscribe-button>
23         </div>
24
25         <div class="actor-lower">
26           <div class="actor-followers" i18n>{videoChannel.followersCount, plural, =1 {1 subscriber} other {{{ videoChannel.followersCount }} subscribers}}</div>
27   
28           <a [routerLink]="[ '/accounts', videoChannel.ownerBy ]" i18n-title title="Go the owner account page" class="actor-owner">
29             <span i18n>Created by {{ videoChannel.ownerBy }}</span>
30             <img [src]="videoChannel.ownerAvatarUrl" alt="Owner account avatar" />
31           </a>
32         </div>
33       </div>
34     </div>
35
36     <div class="links w-100">
37       <ng-template #linkTemplate let-item="item">
38         <a [routerLink]="item.routerLink" routerLinkActive="active" class="title-page">{{ item.label }}</a>
39       </ng-template>
40
41       <list-overflow [items]="links" [itemTemplate]="linkTemplate"></list-overflow>
42     </div>
43   </div>
44
45   <div class="margin-content">
46     <router-outlet></router-outlet>
47   </div>
48 </div>