]>
Commit | Line | Data |
---|---|---|
d1992b93 C |
1 | <div *ngIf="error" class="row"> |
2 | <div class="alert alert-danger"> | |
3 | The video load seems to be abnormally long. | |
4 | <ul> | |
49abbbbe | 5 | <li>Maybe the server {{ video.podHost }} is down :(</li> |
d1992b93 C |
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> | |
3ad109e4 C |
14 | </div> |
15 | ||
d1992b93 C |
16 | <div class="row"> |
17 | <div class="col-md-12"> | |
9c89a45c C |
18 | <!-- We need the video container for videojs so we just hide it --> |
19 | <div [hidden]="videoNotFound" class="embed-responsive embed-responsive-19by9"> | |
e31f6ad6 | 20 | <video id="video-container" class="video-js vjs-default-skin vjs-big-play-centered"></video> |
d1992b93 | 21 | </div> |
9c89a45c C |
22 | |
23 | <div *ngIf="videoNotFound" id="video-not-found">Video not found :'(</div> | |
d1992b93 | 24 | </div> |
dc8bc31b | 25 | </div> |
da932efc | 26 | |
d1992b93 | 27 | <div id="torrent-info" class="row"> |
a64668c0 C |
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> | |
d1992b93 C |
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> | |
feb4bdfd | 50 | <span id="video-date">on {{ video.createdAt | date:'short' }}</span> |
d1992b93 C |
51 | </div> |
52 | </div> | |
53 | </div> | |
54 | ||
55 | <div id="video-actions" class="col-md-4 text-right"> | |
99cc4f49 C |
56 | <button id="share" class="btn btn-default" (click)="showShareModal()"> |
57 | <span class="glyphicon glyphicon-share"></span> Share | |
58 | </button> | |
59 | ||
3154f382 | 60 | <button title="Get magnet URI" id="magnet-uri" class="btn btn-default" (click)="showMagnetUriModal()"> |
d1992b93 C |
61 | <span class="glyphicon glyphicon-magnet"></span> Magnet |
62 | </button> | |
4f8c0eb0 C |
63 | |
64 | <div *ngIf="isUserLoggedIn()" class="btn-group" dropdown> | |
65 | <button id="single-button" type="button" id="more" class="btn btn-default" dropdownToggle> | |
66 | <span class="glyphicon glyphicon-option-horizontal"></span> More | |
67 | </button> | |
68 | <ul dropdownMenu id="more-menu" role="menu" aria-labelledby="single-button"> | |
69 | <li role="menuitem"> | |
70 | <a class="dropdown-item" href="#" (click)="showReportModal($event)"> | |
71 | <span class="glyphicon glyphicon-alert"></span> Report | |
72 | </a> | |
73 | </li> | |
74 | </ul> | |
75 | </div> | |
d1992b93 C |
76 | </div> |
77 | </div> | |
78 | ||
79 | <div id="video-tags" class="row"> | |
80 | <div class="col-md-12"> | |
81 | <a *ngFor="let tag of video.tags" [routerLink]="['/videos/list', { field: 'tags', search: tag }]" class="label label-primary"> | |
82 | {{ tag }} | |
83 | </a> | |
84 | </div> | |
85 | </div> | |
86 | ||
87 | <div id="video-description" class="row"> | |
88 | <div class="col-md-12"> | |
89 | <div id="description-label">Description</div> | |
90 | {{ video.description }} | |
91 | </div> | |
92 | </div> | |
93 | </div> | |
94 | ||
4f8c0eb0 C |
95 | <template [ngIf]="video !== null"> |
96 | <my-video-share #videoShareModal [video]="video"></my-video-share> | |
97 | <my-video-magnet #videoMagnetModal [video]="video"></my-video-magnet> | |
98 | <my-video-report #videoReportModal [video]="video"></my-video-report> | |
99 | </template> |