]>
Commit | Line | Data |
---|---|---|
63347a0f C |
1 | <ng-template #modal let-hide="close"> |
2 | <div class="modal-header"> | |
3 | <h4 i18n class="modal-title">Share</h4> | |
457bb213 | 4 | <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon> |
63347a0f | 5 | </div> |
cf02fbfb | 6 | |
63347a0f | 7 | <div class="modal-body"> |
dcbc29d5 C |
8 | |
9 | <div *ngIf="currentVideoTimestampString" class="start-at"> | |
10 | <my-peertube-checkbox | |
11 | inputName="startAt" [(ngModel)]="startAtCheckbox" | |
12 | i18n-labelText [labelText]="getStartCheckboxLabel()" | |
13 | ></my-peertube-checkbox> | |
14 | </div> | |
15 | ||
63347a0f C |
16 | <div class="form-group"> |
17 | <label i18n>URL</label> | |
18 | <div class="input-group input-group-sm"> | |
19 | <input #urlInput (click)="urlInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoUrl()" /> | |
20 | <div class="input-group-append"> | |
21 | <button [ngxClipboard]="urlInput" (click)="activateCopiedMessage()" type="button" class="btn btn-outline-secondary"> | |
22 | <span class="glyphicon glyphicon-copy"></span> | |
23 | </button> | |
cf02fbfb | 24 | </div> |
63347a0f C |
25 | </div> |
26 | </div> | |
2c8d4697 | 27 | |
11b8762f C |
28 | <div class="form-group qr-code-group"> |
29 | <label i18n>QR-Code</label> | |
30 | <ngx-qrcode qrc-element-type="url" [qrc-value]="getVideoUrl()" qrc-errorCorrectionLevel="Q"></ngx-qrcode> | |
31 | </div> | |
32 | ||
63347a0f C |
33 | <div class="form-group"> |
34 | <label i18n>Embed</label> | |
35 | <div class="input-group input-group-sm"> | |
36 | <input #shareInput (click)="shareInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoIframeCode()" /> | |
37 | <div class="input-group-append"> | |
38 | <button [ngxClipboard]="shareInput" (click)="activateCopiedMessage()" type="button" class="btn btn-outline-secondary"> | |
39 | <span class="glyphicon glyphicon-copy"></span> | |
40 | </button> | |
2c8d4697 | 41 | </div> |
63347a0f C |
42 | </div> |
43 | </div> | |
5f0805d3 | 44 | |
63347a0f C |
45 | <div i18n *ngIf="notSecure()" class="alert alert-warning"> |
46 | The url is not secured (no HTTPS), so the embed video won't work on HTTPS websites (web browsers block non secured HTTP requests on HTTPS websites). | |
47 | </div> | |
11b8762f | 48 | </div> |
4503cb2a | 49 | |
63347a0f | 50 | <div class="modal-footer inputs"> |
11b8762f | 51 | <span i18n class="action-button action-button-cancel" (click)="hide()">Close</span> |
63347a0f C |
52 | </div> |
53 | ||
54 | </ng-template> |