aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch/video-download.component.html
blob: 7efc79e93fd4a8f495357c10931a78d48f49199d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<div bsModal #modal="bs-modal" class="modal" tabindex="-1">
  <div class="modal-dialog">
    <div class="modal-content modal-lg">

      <div class="modal-header">
        <button type="button" class="close" aria-label="Close" (click)="hide()">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="title-page title-page-single">Download</h4>
      </div>

      <div class="modal-body">
        <div *ngFor="let file of video.files" class="resolution-block">
          <label>{{ file.resolutionLabel }}</label>

          <a class="orange-button-link " target="_blank" [href]="file.torrentUrl">
            <span class="icon icon-download"></span>
            Torrent file
          </a>
          <a class="orange-button-link" target="_blank" [href]="file.fileUrl">
            <span class="icon icon-download"></span>
            Download
          </a>

          <!-- Don't display magnet URI for now, this is not compatible with most torrent clients -->
          <!--<input #magnetUriInput (click)="magnetUriInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="file.magnetUri" />-->
        </div>
      </div>
    </div>
  </div>
</div>