]>
Commit | Line | Data |
---|---|---|
1 | <ng-template #modal let-hide="close"> | |
2 | <div class="modal-header"> | |
3 | <h4 i18n class="modal-title">Share</h4> | |
4 | <span class="close" aria-hidden="true" (click)="hide()"></span> | |
5 | </div> | |
6 | ||
7 | <div class="modal-body"> | |
8 | <div class="form-group"> | |
9 | <label i18n>URL</label> | |
10 | <div class="input-group input-group-sm"> | |
11 | <input #urlInput (click)="urlInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoUrl()" /> | |
12 | <div class="input-group-append"> | |
13 | <button [ngxClipboard]="urlInput" (click)="activateCopiedMessage()" type="button" class="btn btn-outline-secondary"> | |
14 | <span class="glyphicon glyphicon-copy"></span> | |
15 | </button> | |
16 | </div> | |
17 | </div> | |
18 | </div> | |
19 | ||
20 | <div class="form-group qr-code-group"> | |
21 | <label i18n>QR-Code</label> | |
22 | <ngx-qrcode qrc-element-type="url" [qrc-value]="getVideoUrl()" qrc-errorCorrectionLevel="Q"></ngx-qrcode> | |
23 | </div> | |
24 | ||
25 | <div class="form-group"> | |
26 | <label i18n>Embed</label> | |
27 | <div class="input-group input-group-sm"> | |
28 | <input #shareInput (click)="shareInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoIframeCode()" /> | |
29 | <div class="input-group-append"> | |
30 | <button [ngxClipboard]="shareInput" (click)="activateCopiedMessage()" type="button" class="btn btn-outline-secondary"> | |
31 | <span class="glyphicon glyphicon-copy"></span> | |
32 | </button> | |
33 | </div> | |
34 | </div> | |
35 | </div> | |
36 | ||
37 | <div i18n *ngIf="notSecure()" class="alert alert-warning"> | |
38 | 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). | |
39 | </div> | |
40 | </div> | |
41 | ||
42 | <div *ngIf="currentVideoTimestampString" class="start-at"> | |
43 | <my-peertube-checkbox | |
44 | inputName="startAt" [(ngModel)]="startAtCheckbox" | |
45 | i18n-labelText [labelText]="getStartCheckboxLabel()" | |
46 | ></my-peertube-checkbox> | |
47 | </div> | |
48 | ||
49 | <div class="modal-footer inputs"> | |
50 | <span i18n class="action-button action-button-cancel" (click)="hide()">Close</span> | |
51 | </div> | |
52 | ||
53 | </ng-template> |