diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-01-07 23:51:14 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-01-10 10:12:09 +0100 |
commit | 41eb700fceee1085dd0e1a9ce78ecbd0e111eb6e (patch) | |
tree | 41d39a5e8604cd769e9487d5046876629c638316 /client/src/app/+accounts/accounts.component.html | |
parent | fc2df421a99e87ad20ca1f758491b6af476efd56 (diff) | |
download | PeerTube-41eb700fceee1085dd0e1a9ce78ecbd0e111eb6e.tar.gz PeerTube-41eb700fceee1085dd0e1a9ce78ecbd0e111eb6e.tar.zst PeerTube-41eb700fceee1085dd0e1a9ce78ecbd0e111eb6e.zip |
Refactor my-subscribe-button to support full account subscription
Diffstat (limited to 'client/src/app/+accounts/accounts.component.html')
-rw-r--r-- | client/src/app/+accounts/accounts.component.html | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/client/src/app/+accounts/accounts.component.html b/client/src/app/+accounts/accounts.component.html index 70257162d..1b6eb480e 100644 --- a/client/src/app/+accounts/accounts.component.html +++ b/client/src/app/+accounts/accounts.component.html | |||
@@ -28,8 +28,15 @@ | |||
28 | > | 28 | > |
29 | </my-user-moderation-dropdown> | 29 | </my-user-moderation-dropdown> |
30 | </div> | 30 | </div> |
31 | <div i18n class="actor-followers">{{ account.followersCount }} subscribers</div> | 31 | <div class="actor-followers"> |
32 | {{ account.followersCount }} | ||
33 | <ng-container *ngIf="account.followersCount === 1; then single; else multiple"></ng-container> | ||
34 | <ng-template i18n #single>subscriber</ng-template> | ||
35 | <ng-template i18n #multiple>subscribers</ng-template> | ||
36 | </div> | ||
32 | </div> | 37 | </div> |
38 | |||
39 | <my-subscribe-button *ngIf="videoChannels" [account]="account" [videoChannels]="videoChannels"></my-subscribe-button> | ||
33 | </div> | 40 | </div> |
34 | 41 | ||
35 | <div class="links"> | 42 | <div class="links"> |