diff options
Diffstat (limited to 'client/src/app/shared/shared-moderation/video-block.component.html')
-rw-r--r-- | client/src/app/shared/shared-moderation/video-block.component.html | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/client/src/app/shared/shared-moderation/video-block.component.html b/client/src/app/shared/shared-moderation/video-block.component.html index 5e9e8493c..e5793f2ca 100644 --- a/client/src/app/shared/shared-moderation/video-block.component.html +++ b/client/src/app/shared/shared-moderation/video-block.component.html | |||
@@ -1,7 +1,14 @@ | |||
1 | <ng-template #modal> | 1 | <ng-template #modal> |
2 | <div class="modal-header"> | 2 | <div class="modal-header"> |
3 | <h4 i18n class="modal-title" *ngIf="!video.isLive">Block video "{{ video.name }}"</h4> | 3 | <ng-container *ngIf="isMultiple()"> |
4 | <h4 i18n class="modal-title" *ngIf="video.isLive">Block live "{{ video.name }}"</h4> | 4 | <h4 i18n class="modal-title">Block {{ videos.length }} videos</h4> |
5 | </ng-container> | ||
6 | |||
7 | <ng-container *ngIf="!isMultiple()"> | ||
8 | <h4 i18n class="modal-title" *ngIf="!getSingleVideo().isLive">Block video "{{ getSingleVideo().name }}"</h4> | ||
9 | <h4 i18n class="modal-title" *ngIf="getSingleVideo().isLive">Block live "{{ getSingleVideo().name }}"</h4> | ||
10 | </ng-container> | ||
11 | |||
5 | <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon> | 12 | <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon> |
6 | </div> | 13 | </div> |
7 | 14 | ||
@@ -18,19 +25,20 @@ | |||
18 | </div> | 25 | </div> |
19 | </div> | 26 | </div> |
20 | 27 | ||
21 | <div class="form-group" *ngIf="video.isLocal"> | 28 | <div class="form-group" *ngIf="hasLocal()"> |
22 | <my-peertube-checkbox | 29 | <my-peertube-checkbox |
23 | inputName="unfederate" formControlName="unfederate" | 30 | inputName="unfederate" formControlName="unfederate" |
24 | i18n-labelText labelText="Unfederate the video" | 31 | i18n-labelText labelText="Unfederate" |
25 | > | 32 | > |
26 | <ng-container ngProjectAs="description"> | 33 | <ng-container ngProjectAs="description"> |
27 | <span i18n>This will ask remote instances to delete it</span> | 34 | <span *ngIf="isMultiple()" i18n>This will ask remote instances to delete local videos</span> |
35 | <span *ngIf="!isMultiple()" i18n>This will ask remote instances to delete this video</span> | ||
28 | </ng-container> | 36 | </ng-container> |
29 | </my-peertube-checkbox> | 37 | </my-peertube-checkbox> |
30 | </div> | 38 | </div> |
31 | 39 | ||
32 | <strong class="live-info" *ngIf="video.isLive" i18n> | 40 | <strong class="live-info" *ngIf="hasLive()" i18n> |
33 | Blocking this live will automatically terminate the live stream. | 41 | Blocking a live will automatically terminate the live stream. |
34 | </strong> | 42 | </strong> |
35 | 43 | ||
36 | <div class="form-group inputs"> | 44 | <div class="form-group inputs"> |
@@ -39,7 +47,7 @@ | |||
39 | (click)="hide()" (key.enter)="hide()" | 47 | (click)="hide()" (key.enter)="hide()" |
40 | > | 48 | > |
41 | 49 | ||
42 | <input type="submit" i18n-value value="Submit" class="peertube-button orange-button" [disabled]="!form.valid" /> | 50 | <input type="submit" i18n-value value="Block" class="peertube-button orange-button" [disabled]="!form.valid" /> |
43 | </div> | 51 | </div> |
44 | </form> | 52 | </form> |
45 | 53 | ||