Merge branch 'release/v1.2.0'
[oweals/peertube.git] / client / src / app / videos / +video-watch / modal / video-share.component.html
1 <ng-template #modal let-hide="close">
2   <div class="modal-header">
3     <h4 i18n class="modal-title">Share</h4>
4     <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon>
5   </div>
6
7   <div class="modal-body">
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
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>
24         </div>
25       </div>
26     </div>
27
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
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>
41         </div>
42       </div>
43     </div>
44
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>
48   </div>
49
50   <div class="modal-footer inputs">
51     <span i18n class="action-button action-button-cancel" (click)="hide()">Close</span>
52   </div>
53
54 </ng-template>