1
0
Fork 0
peertube/client/src/app/videos/+video-watch/modal/video-share.component.html

48 lines
1.9 KiB
HTML
Raw Normal View History

<div bsModal #modal="bs-modal" class="modal" tabindex="-1">
2017-12-20 16:49:58 +00:00
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
2017-12-20 16:49:58 +00:00
<span class="close" aria-hidden="true" (click)="hide()"></span>
2018-06-04 14:21:17 +00:00
<h4 i18n class="modal-title">Share</h4>
</div>
<div class="modal-body">
<div class="form-group">
2018-06-04 14:21:17 +00:00
<label i18n>URL</label>
2017-12-11 17:08:40 +00:00
<div class="input-group input-group-sm">
<input #urlInput (click)="urlInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoUrl()" />
<div class="input-group-btn" placement="bottom right">
<button [ngxClipboard]="urlInput" (click)="activateCopiedMessage()" type="button" class="btn btn-default btn-search">
<span class="glyphicon glyphicon-copy"></span>
</button>
</div>
</div>
</div>
<div class="form-group">
2018-06-04 14:21:17 +00:00
<label i18n>Embed</label>
2017-12-11 17:08:40 +00:00
<div class="input-group input-group-sm">
<input #shareInput (click)="shareInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoIframeCode()" />
<div class="input-group-btn" placement="bottom right">
<button [ngxClipboard]="shareInput" (click)="activateCopiedMessage()" type="button" class="btn btn-default btn-search">
<span class="glyphicon glyphicon-copy"></span>
</button>
</div>
</div>
</div>
2018-06-04 14:21:17 +00:00
<div i18n *ngIf="notSecure()" class="alert alert-warning">
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).
</div>
2017-12-20 16:49:58 +00:00
<div class="form-group inputs">
2018-06-04 14:21:17 +00:00
<span i18n class="action-button action-button-cancel" (click)="hide()">
2017-12-20 16:49:58 +00:00
Cancel
</span>
</div>
</div>
</div>
</div>
</div>