]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - 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
CommitLineData
d607fc24 1<h1>
4f5d0459
RK
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>
d607fc24 7</h1>
4f5d0459 8
0f7407d9 9<div class="video-subscriptions-header">
4f5d0459 10 <div class="has-feedback has-clear">
d607fc24 11 <input type="text" placeholder="Search your subscriptions" i18n-placeholder [(ngModel)]="subscriptionsSearch"
12 (ngModelChange)="onSubscriptionsSearchChanged()" />
4f5d0459
RK
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>
d607fc24 16</div>
ed5bb517 17
d8b34ee5 18<div class="no-results" i18n *ngIf="pagination.totalItems === 0">You don't have any subscription yet.</div>
a8936810 19
ad453580 20<div class="video-channels" myInfiniteScroller [autoInit]="true" (nearOfBottom)="onNearOfBottom()" [dataObservable]="onDataSubject.asObservable()">
22a16e36 21 <div *ngFor="let videoChannel of videoChannels" class="video-channel">
746018f6 22 <my-actor-avatar [channel]="videoChannel" [internalHref]="[ '/video-channels', videoChannel.nameWithHost ]"></my-actor-avatar>
22a16e36
C
23
24 <div class="video-channel-info">
d6d951dd 25 <a [routerLink]="[ '/video-channels', videoChannel.nameWithHost ]" class="video-channel-names" i18n-title title="Channel page">
22a16e36 26 <div class="video-channel-display-name">{{ videoChannel.displayName }}</div>
f5b0af50 27 <div class="video-channel-name">{{ videoChannel.nameWithHost }}</div>
22a16e36
C
28 </a>
29
30 <div i18n class="video-channel-followers">{{ videoChannel.followersCount }} subscribers</div>
31
d6d951dd 32 <a [routerLink]="[ '/accounts', videoChannel.ownerBy ]" i18n-title title="Owner account page" class="actor-owner">
22a16e36 33 <span i18n>Created by {{ videoChannel.ownerBy }}</span>
746018f6
C
34
35 <my-actor-avatar [account]="videoChannel.ownerAccount" size="18"></my-actor-avatar>
22a16e36
C
36 </a>
37 </div>
38
41eb700f 39 <my-subscribe-button [videoChannels]="[videoChannel]"></my-subscribe-button>
22a16e36
C
40 </div>
41</div>