aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+about/about-follows/about-follows.component.html
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-12-14 10:23:24 +0100
committerChocobozzz <me@florianbigard.com>2020-12-14 10:23:34 +0100
commit0d7c73142c3ed3508ff44ab04505256d5443ab19 (patch)
tree110f11ece542e2eba1746be849899d87a790c625 /client/src/app/+about/about-follows/about-follows.component.html
parented8b4014cee544512addfbd75627d2a1cfa0e764 (diff)
downloadPeerTube-0d7c73142c3ed3508ff44ab04505256d5443ab19.tar.gz
PeerTube-0d7c73142c3ed3508ff44ab04505256d5443ab19.tar.zst
PeerTube-0d7c73142c3ed3508ff44ab04505256d5443ab19.zip
Simplify a little bit about follows more logic
Diffstat (limited to 'client/src/app/+about/about-follows/about-follows.component.html')
-rw-r--r--client/src/app/+about/about-follows/about-follows.component.html22
1 files changed, 5 insertions, 17 deletions
diff --git a/client/src/app/+about/about-follows/about-follows.component.html b/client/src/app/+about/about-follows/about-follows.component.html
index 60cf3a28e..c2228b955 100644
--- a/client/src/app/+about/about-follows/about-follows.component.html
+++ b/client/src/app/+about/about-follows/about-follows.component.html
@@ -6,16 +6,10 @@
6 <div i18n class="no-results" *ngIf="followersPagination.totalItems === 0">This instance does not have instances followers.</div> 6 <div i18n class="no-results" *ngIf="followersPagination.totalItems === 0">This instance does not have instances followers.</div>
7 7
8 <a *ngFor="let follower of followers" [href]="buildLink(follower)" target="_blank" rel="noopener noreferrer"> 8 <a *ngFor="let follower of followers" [href]="buildLink(follower)" target="_blank" rel="noopener noreferrer">
9 {{follower}} 9 {{ follower}}
10 </a> 10 </a>
11 <ng-container *ngIf="showMoreFollowers"> 11
12 <a *ngFor="let follower of moreFollowers" [href]="buildLink(follower)" target="_blank" rel="noopener noreferrer"> 12 <button i18n class="showMore" *ngIf="!loadedAllFollowers && canLoadMoreFollowers()" (click)="loadAllFollowers()">Show full list</button>
13 {{ follower }}
14 </a>
15 </ng-container>
16
17 <button i18n class="showMore" *ngIf="!showMoreFollowers && followersPagination.totalItems > 0" (click)="loadAllFollowers()" (click)="showMoreFollowers=true">Show full list</button>
18 <button i18n class="showMore" *ngIf="showMoreFollowers" (click)= "showMoreFollowers=false">Show less</button>
19 </div> 13 </div>
20 14
21 <div class="col-xl-6 col-md-12"> 15 <div class="col-xl-6 col-md-12">
@@ -26,14 +20,8 @@
26 <a *ngFor="let following of followings" [href]="buildLink(following)" target="_blank" rel="noopener noreferrer"> 20 <a *ngFor="let following of followings" [href]="buildLink(following)" target="_blank" rel="noopener noreferrer">
27 {{ following }} 21 {{ following }}
28 </a> 22 </a>
29 <ng-container *ngIf="showMoreFollowings"> 23
30 <a *ngFor="let following of moreFollowings" [href]="buildLink(following)" target="_blank" rel="noopener noreferrer"> 24 <button i18n class="showMore" *ngIf="!loadedAllFollowings && canLoadMoreFollowings()" (click)="loadAllFollowings()">Show full list</button>
31 {{ following }}
32 </a>
33 </ng-container>
34
35 <button i18n class="showMore" *ngIf="!showMoreFollowings && followingsPagination.totalItems > 0" (click)="loadAllFollowings()" (click)="showMoreFollowings=true">Show full list</button>
36 <button i18n class="showMore" *ngIf="showMoreFollowings" (click)="showMoreFollowings=false">Show less</button>
37 </div> 25 </div>
38 26
39</div> 27</div>