]>
Commit | Line | Data |
---|---|---|
660d11e9 RK |
1 | <div class="btn-group-subscribe btn-group" |
2 | [ngClass]="{'subscribe-button': subscribed !== true, 'unsubscribe-button': subscribed === true}"> | |
3 | <button *ngIf="subscribed === false && isUserLoggedIn()" type="button" | |
4 | class="btn btn-sm" role="button" | |
5 | (click)="subscribe()" i18n> | |
6 | <span> | |
7 | Subscribe | |
8 | </span> | |
9 | <span *ngIf="displayFollowers && videoChannel.followersCount !== 0" class="followers-count"> | |
10 | {{ videoChannel.followersCount | myNumberFormatter }} | |
11 | </span> | |
12 | </button> | |
13 | <button *ngIf="subscribed === true" type="button" | |
14 | class="btn btn-sm" role="button" | |
15 | (click)="unsubscribe()" i18n>Unsubscribe</button> | |
16 | ||
17 | <div class="btn-group" ngbDropdown autoClose="outside" | |
18 | placement="bottom-right" role="group" | |
19 | aria-label="Multiple ways to subscribe to the current channel"> | |
20 | <button class="btn btn-sm dropdown-toggle-split" ngbDropdownToggle> | |
21 | <span *ngIf="!isUserLoggedIn()"> | |
22 | Subscribe | |
23 | </span> | |
24 | <span *ngIf="displayFollowers && videoChannel.followersCount !== 0" class="followers-count"> | |
25 | {{ videoChannel.followersCount | myNumberFormatter }} | |
26 | </span> | |
27 | </button> | |
28 | <div class="dropdown-menu" ngbDropdownMenu> | |
29 | ||
30 | <h6 class="dropdown-header" i18n>Using an ActivityPub-compatible account</h6> | |
31 | <button class="dropdown-item" (click)="subscribe()" | |
32 | *ngIf="subscribed === false"> | |
33 | <span *ngIf="!isUserLoggedIn()" i18n>Subscribe with an account on {{ videoChannel.host }}</span> | |
34 | <span *ngIf="isUserLoggedIn()" i18n>Subscribe with your local account</span> | |
35 | </button> | |
36 | <button class="dropdown-item" i18n>Subscribe with a remote account:</button> | |
37 | <my-remote-subscribe showHelp="true" account="{{ uriAccount }}"></my-remote-subscribe> | |
38 | <div class="dropdown-divider"></div> | |
39 | ||
40 | <h6 class="dropdown-header" i18n>Using a syndication feed</h6> | |
41 | <button (click)="rssOpen()" class="dropdown-item" i18n>Subscribe via RSS</button> | |
42 | ||
43 | </div> | |
44 | </div> | |
45 | </div> |