]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+my-library/my-subscriptions/my-subscriptions.component.html
Refactor actor avatar display
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-library / my-subscriptions / my-subscriptions.component.html
1 <h1>
2 <span>
3 <my-global-icon iconName="subscriptions" aria-hidden="true"></my-global-icon>
4 <ng-container i18n>My subscriptions</ng-container>
5 <span class="badge badge-secondary"> {{ pagination.totalItems }}</span>
6 </span>
7 </h1>
8
9 <div class="video-subscriptions-header">
10 <div class="has-feedback has-clear">
11 <input type="text" placeholder="Search your subscriptions" i18n-placeholder [(ngModel)]="subscriptionsSearch"
12 (ngModelChange)="onSubscriptionsSearchChanged()" />
13 <a class="glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)="resetSearch()"></a>
14 <span class="sr-only" i18n>Clear filters</span>
15 </div>
16 </div>
17
18 <div class="no-results" i18n *ngIf="pagination.totalItems === 0">You don't have any subscription yet.</div>
19
20 <div class="video-channels" myInfiniteScroller [autoInit]="true" (nearOfBottom)="onNearOfBottom()" [dataObservable]="onDataSubject.asObservable()">
21 <div *ngFor="let videoChannel of videoChannels" class="video-channel">
22 <my-actor-avatar [channel]="videoChannel" [internalHref]="[ '/video-channels', videoChannel.nameWithHost ]"></my-actor-avatar>
23
24 <div class="video-channel-info">
25 <a [routerLink]="[ '/video-channels', videoChannel.nameWithHost ]" class="video-channel-names" i18n-title title="Channel page">
26 <div class="video-channel-display-name">{{ videoChannel.displayName }}</div>
27 <div class="video-channel-name">{{ videoChannel.nameWithHost }}</div>
28 </a>
29
30 <div i18n class="video-channel-followers">{{ videoChannel.followersCount }} subscribers</div>
31
32 <a [routerLink]="[ '/accounts', videoChannel.ownerBy ]" i18n-title title="Owner account page" class="actor-owner">
33 <span i18n>Created by {{ videoChannel.ownerBy }}</span>
34
35 <my-actor-avatar [account]="videoChannel.ownerAccount" size="18"></my-actor-avatar>
36 </a>
37 </div>
38
39 <my-subscribe-button [videoChannels]="[videoChannel]"></my-subscribe-button>
40 </div>
41 </div>