]>
Commit | Line | Data |
---|---|---|
1 | <div *ngIf="error" class="row"> | |
2 | <div class="alert alert-danger"> | |
3 | The video load seems to be abnormally long. | |
4 | <ul> | |
5 | <li>Maybe the server {{ video.podHost }} is down :(</li> | |
6 | <li> | |
7 | If not, you can report an issue on | |
8 | <a href="https://github.com/Chocobozzz/PeerTube/issues" title="Report an issue"> | |
9 | https://github.com/Chocobozzz/PeerTube/issues | |
10 | </a> | |
11 | </li> | |
12 | </ul> | |
13 | </div> | |
14 | </div> | |
15 | ||
16 | <div class="row"> | |
17 | <div class="col-md-12"> | |
18 | <!-- We need the video container for videojs so we just hide it --> | |
19 | <div [hidden]="videoNotFound" class="embed-responsive embed-responsive-19by9"> | |
20 | <video id="video-container" class="video-js vjs-default-skin vjs-big-play-centered"></video> | |
21 | </div> | |
22 | ||
23 | <div *ngIf="videoNotFound" id="video-not-found">Video not found :'(</div> | |
24 | </div> | |
25 | </div> | |
26 | ||
27 | <div id="torrent-info" class="row"> | |
28 | <div id="torrent-info-download" class="col-md-4 col-sm-4 col-xs-4">Download: {{ downloadSpeed | bytes }}/s</div> | |
29 | <div id="torrent-info-upload" class="col-md-4 col-sm-4 col-xs-4">Upload: {{ uploadSpeed | bytes }}/s</div> | |
30 | <div id="torrent-info-peers" class="col-md-4 col-sm-4 col-xs-4">Number of peers: {{ numPeers }}</div> | |
31 | </div> | |
32 | ||
33 | <div *ngIf="video !== null" id="video-info"> | |
34 | <div class="row" id="video-name-actions"> | |
35 | <div class="col-md-8"> | |
36 | <div class="row"> | |
37 | <div id="video-name" class="col-md-12"> | |
38 | {{ video.name }} | |
39 | </div> | |
40 | </div> | |
41 | ||
42 | <div class="row"> | |
43 | <div class="col-md-12" id="video-by-date"> | |
44 | <span id="video-by"> | |
45 | from | |
46 | <a [routerLink]="['/videos/list', { field: 'author', search: video.author }]" class="video-miniature-author"> | |
47 | {{ video.by }} | |
48 | </a> | |
49 | </span> | |
50 | <span id="video-date">on {{ video.createdAt | date:'short' }}</span> | |
51 | </div> | |
52 | </div> | |
53 | </div> | |
54 | ||
55 | <div id="video-actions" class="col-md-4 text-right"> | |
56 | <button id="share" class="btn btn-default" (click)="showShareModal()"> | |
57 | <span class="glyphicon glyphicon-share"></span> Share | |
58 | </button> | |
59 | ||
60 | <button title="Get magnet URI" id="magnet-uri" class="btn btn-default" (click)="showMagnetUriModal()"> | |
61 | <span class="glyphicon glyphicon-magnet"></span> Magnet | |
62 | </button> | |
63 | </div> | |
64 | </div> | |
65 | ||
66 | <div id="video-tags" class="row"> | |
67 | <div class="col-md-12"> | |
68 | <a *ngFor="let tag of video.tags" [routerLink]="['/videos/list', { field: 'tags', search: tag }]" class="label label-primary"> | |
69 | {{ tag }} | |
70 | </a> | |
71 | </div> | |
72 | </div> | |
73 | ||
74 | <div id="video-description" class="row"> | |
75 | <div class="col-md-12"> | |
76 | <div id="description-label">Description</div> | |
77 | {{ video.description }} | |
78 | </div> | |
79 | </div> | |
80 | </div> | |
81 | ||
82 | <my-video-share #videoShareModal *ngIf="video !== null" [video]="video"></my-video-share> | |
83 | <my-video-magnet #videoMagnetModal *ngIf="video !== null" [video]="video"></my-video-magnet> |