diff options
Diffstat (limited to 'client/src/app/videos/+video-watch/video-download.component.html')
-rw-r--r-- | client/src/app/videos/+video-watch/video-download.component.html | 45 |
1 files changed, 28 insertions, 17 deletions
diff --git a/client/src/app/videos/+video-watch/video-download.component.html b/client/src/app/videos/+video-watch/video-download.component.html index 7efc79e93..f8f17a471 100644 --- a/client/src/app/videos/+video-watch/video-download.component.html +++ b/client/src/app/videos/+video-watch/video-download.component.html | |||
@@ -1,29 +1,40 @@ | |||
1 | <div bsModal #modal="bs-modal" class="modal" tabindex="-1"> | 1 | <div bsModal #modal="bs-modal" class="modal" tabindex="-1"> |
2 | <div class="modal-dialog"> | 2 | <div class="modal-dialog"> |
3 | <div class="modal-content modal-lg"> | 3 | <div class="modal-content"> |
4 | 4 | ||
5 | <div class="modal-header"> | 5 | <div class="modal-header"> |
6 | <button type="button" class="close" aria-label="Close" (click)="hide()"> | 6 | <span class="close" aria-hidden="true" (click)="hide()"></span> |
7 | <span aria-hidden="true">×</span> | 7 | <h4 class="modal-title">Download video</h4> |
8 | </button> | ||
9 | <h4 class="title-page title-page-single">Download</h4> | ||
10 | </div> | 8 | </div> |
11 | 9 | ||
12 | <div class="modal-body"> | 10 | <div class="modal-body"> |
13 | <div *ngFor="let file of video.files" class="resolution-block"> | 11 | <div class="peertube-select-container"> |
14 | <label>{{ file.resolutionLabel }}</label> | 12 | <select [(ngModel)]="resolution"> |
13 | <option *ngFor="let file of video.files" [value]="file.resolution">{{ file.resolutionLabel }}</option> | ||
14 | </select> | ||
15 | </div> | ||
16 | |||
17 | <div class="download-type"> | ||
18 | <div class="peertube-radio-container"> | ||
19 | <input type="radio" name="download" id="download-torrent" [(ngModel)]="downloadType" value="torrent"> | ||
20 | <label for="download-torrent">Torrent</label> | ||
21 | </div> | ||
22 | |||
23 | <div class="peertube-radio-container"> | ||
24 | <input type="radio" name="download" id="download-direct" [(ngModel)]="downloadType" value="direct"> | ||
25 | <label for="download-direct">Direct download</label> | ||
26 | </div> | ||
27 | </div> | ||
15 | 28 | ||
16 | <a class="orange-button-link " target="_blank" [href]="file.torrentUrl"> | 29 | <div class="form-group inputs"> |
17 | <span class="icon icon-download"></span> | 30 | <span class="action-button action-button-cancel" (click)="hide()"> |
18 | Torrent file | 31 | Cancel |
19 | </a> | 32 | </span> |
20 | <a class="orange-button-link" target="_blank" [href]="file.fileUrl"> | ||
21 | <span class="icon icon-download"></span> | ||
22 | Download | ||
23 | </a> | ||
24 | 33 | ||
25 | <!-- Don't display magnet URI for now, this is not compatible with most torrent clients --> | 34 | <input |
26 | <!--<input #magnetUriInput (click)="magnetUriInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="file.magnetUri" />--> | 35 | type="submit" value="Download" class="action-button-submit" |
36 | (click)="download()" | ||
37 | > | ||
27 | </div> | 38 | </div> |
28 | </div> | 39 | </div> |
29 | </div> | 40 | </div> |