]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+video-channels/video-channels.component.html
Reorganize left menu and account menu
[github/Chocobozzz/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.nameWithHostForced" (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 && !isInSmallView" [routerLink]="[ '/my-library/video-channels/update', videoChannel.nameWithHost ]" class="btn btn-outline-tertiary mr-2" i18n>
22 Manage channel
23 </a>
24 <my-subscribe-button #subscribeButton [videoChannels]="[videoChannel]"></my-subscribe-button>
25 </div>
26
27 <div class="actor-lower">
28 <div class="actor-followers" i18n>{videoChannel.followersCount, plural, =1 {1 subscriber} other {{{ videoChannel.followersCount }} subscribers}}</div>
29
30 <a [routerLink]="[ '/accounts', videoChannel.ownerBy ]" i18n-title title="Go the owner account page" class="actor-owner">
31 <span class="d-inline-flex"><span i18n class="d-none d-sm-block mr-1">Created by</span>{{ videoChannel.ownerBy }}</span>
32 <img [src]="videoChannel.ownerAvatarUrl" alt="Owner account avatar" />
33 </a>
34 </div>
35 </div>
36 </div>
37
38 <div class="links w-100">
39 <ng-template #linkTemplate let-item="item">
40 <a [routerLink]="item.routerLink" routerLinkActive="active" class="title-page">{{ item.label }}</a>
41 </ng-template>
42
43 <list-overflow [items]="links" [itemTemplate]="linkTemplate"></list-overflow>
44 </div>
45 </div>
46
47 <div class="margin-content">
48 <router-outlet></router-outlet>
49 </div>
50 </div>