]>
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 | <!-- We need the video container for videojs so we just hide it --> | |
18 | <div [hidden]="videoNotFound" class="embed-responsive embed-responsive-19by9"> | |
19 | <video id="video-container" class="video-js vjs-sublime-skin"></video> | |
20 | </div> | |
21 | ||
22 | <div *ngIf="videoNotFound" id="video-not-found">Video not found :'(</div> | |
23 | </div> | |
24 | ||
25 | <!-- P2P informations --> | |
26 | <div id="torrent-info" class="row"> | |
27 | <div id="torrent-info-download" class="col-md-4 col-sm-4 col-xs-4">Download: {{ downloadSpeed | bytes }}/s</div> | |
28 | <div id="torrent-info-upload" class="col-md-4 col-sm-4 col-xs-4">Upload: {{ uploadSpeed | bytes }}/s</div> | |
29 | <div id="torrent-info-peers" class="col-md-4 col-sm-4 col-xs-4">Number of peers: {{ numPeers }}</div> | |
30 | </div> | |
31 | ||
32 | <!-- Video informations --> | |
33 | <div *ngIf="video !== null" id="video-info"> | |
34 | <div class="row video-name-views"> | |
35 | <div class="col-xs-8 col-md-8 video-name"> | |
36 | {{ video.name }} | |
37 | </div> | |
38 | ||
39 | <div class="col-xs-4 col-md-4 pull-right video-views"> | |
40 | {{ video.views}} views | |
41 | </div> | |
42 | </div> | |
43 | ||
44 | <div class="row video-small-blocks"> | |
45 | <div class="col-xs-5 col-xs-3 col-md-3 video-small-block video-small-block-author"> | |
46 | <a class="option" title="Access to all videos of this user" [routerLink]="['/videos/list', { field: 'author', search: video.author }]"> | |
47 | <span class="glyphicon glyphicon-user"></span> | |
48 | <span class="video-small-block-text">{{ video.by }}</span> | |
49 | </a> | |
50 | </div> | |
51 | ||
52 | <div class="col-xs-2 col-md-3 video-small-block video-small-block-share"> | |
53 | <a class="option" (click)="showShareModal()" title="Share the video"> | |
54 | <span class="glyphicon glyphicon-share"></span> | |
55 | <span class="video-small-block-text">Share</span> | |
56 | </a> | |
57 | </div> | |
58 | ||
59 | <div class="col-xs-2 col-md-3 video-small-block video-small-block-more"> | |
60 | <div class="video-small-block-dropdown" dropdown dropup="true" placement="right"> | |
61 | <a class="option" title="Access to more options" dropdownToggle> | |
62 | <span class="glyphicon glyphicon-option-horizontal"></span> | |
63 | <span class="video-small-block-text">More</span> | |
64 | </a> | |
65 | ||
66 | <ul *dropdownMenu class="dropdown-menu" id="more-menu" role="menu" aria-labelledby="single-button"> | |
67 | <li *ngIf="canUserUpdateVideo()" role="menuitem"> | |
68 | <a class="dropdown-item" title="Update this video" href="#" [routerLink]="[ '/videos/edit', video.uuid ]"> | |
69 | <span class="glyphicon glyphicon-pencil"></span> Update | |
70 | </a> | |
71 | </li> | |
72 | ||
73 | <li role="menuitem"> | |
74 | <a class="dropdown-item" title="Get magnet URI" href="#" (click)="showMagnetUriModal($event)"> | |
75 | <span class="glyphicon glyphicon-magnet"></span> Magnet | |
76 | </a> | |
77 | </li> | |
78 | ||
79 | <li *ngIf="isUserLoggedIn()" role="menuitem"> | |
80 | <a class="dropdown-item" title="Report this video" href="#" (click)="showReportModal($event)"> | |
81 | <span class="glyphicon glyphicon-alert"></span> Report | |
82 | </a> | |
83 | </li> | |
84 | ||
85 | <li *ngIf="isVideoRemovable()" role="menuitem"> | |
86 | <a class="dropdown-item" title="Delete this video" href="#" (click)="removeVideo($event)"> | |
87 | <span class="glyphicon glyphicon-remove"></span> Delete | |
88 | </a> | |
89 | </li> | |
90 | ||
91 | <li *ngIf="isVideoBlacklistable()" role="menuitem"> | |
92 | <a class="dropdown-item" title="Blacklist this video" href="#" (click)="blacklistVideo($event)"> | |
93 | <span class="glyphicon glyphicon-eye-close"></span> Blacklist | |
94 | </a> | |
95 | </li> | |
96 | </ul> | |
97 | </div> | |
98 | </div> | |
99 | ||
100 | <div class="col-xs-3 col-md-3 video-small-block video-small-block-rating"> | |
101 | <div class="video-small-block-like"> | |
102 | <span | |
103 | class="glyphicon glyphicon-thumbs-up" title="Like this video" | |
104 | [ngClass]="{ 'interactive': isUserLoggedIn(), 'activated': userRating === 'like' }" (click)="setLike()" | |
105 | ></span> | |
106 | ||
107 | <span class="video-small-block-text"> | |
108 | {{ video.likes }} | |
109 | </span> | |
110 | </div> | |
111 | ||
112 | <div class="video-small-block-dislike"> | |
113 | <span | |
114 | class="glyphicon glyphicon-thumbs-down" title="Dislike this video" | |
115 | [ngClass]="{ 'interactive': isUserLoggedIn(), 'activated': userRating === 'dislike' }" (click)="setDislike()" | |
116 | ></span> | |
117 | ||
118 | <span class="video-small-block-text"> | |
119 | {{ video.dislikes }} | |
120 | </span> | |
121 | </div> | |
122 | </div> | |
123 | </div> | |
124 | ||
125 | <div class="row video-details"> | |
126 | <div class="video-details-date-description col-xs-8 col-md-9"> | |
127 | <div class="video-details-date"> | |
128 | Published on {{ video.createdAt | date:'short' }} | |
129 | </div> | |
130 | ||
131 | <div class="video-details-description"> | |
132 | {{ video.description }} | |
133 | </div> | |
134 | </div> | |
135 | ||
136 | <div class="video-details-attributes col-xs-4 col-md-3"> | |
137 | <div class="video-details-attribute"> | |
138 | <span class="video-details-attribute-label"> | |
139 | Category: | |
140 | </span> | |
141 | <span class="video-details-attribute-value"> | |
142 | {{ video.categoryLabel }} | |
143 | </span> | |
144 | </div> | |
145 | ||
146 | <div class="video-details-attribute"> | |
147 | <span class="video-details-attribute-label"> | |
148 | Licence: | |
149 | </span> | |
150 | <span class="video-details-attribute-value"> | |
151 | {{ video.licenceLabel }} | |
152 | </span> | |
153 | </div> | |
154 | ||
155 | <div class="video-details-attribute"> | |
156 | <span class="video-details-attribute-label"> | |
157 | Language: | |
158 | </span> | |
159 | <span class="video-details-attribute-value"> | |
160 | {{ video.languageLabel }} | |
161 | </span> | |
162 | </div> | |
163 | ||
164 | <div class="video-details-attribute"> | |
165 | <span class="video-details-attribute-label"> | |
166 | Tags: | |
167 | </span> | |
168 | ||
169 | <div class="video-details-tags"> | |
170 | <a *ngFor="let tag of video.tags" [routerLink]="['/videos/list', { field: 'tags', search: tag }]" class="label label-primary"> | |
171 | {{ tag }} | |
172 | </a> | |
173 | </div> | |
174 | </div> | |
175 | ||
176 | </div> | |
177 | </div> | |
178 | </div> | |
179 | ||
180 | <ng-template [ngIf]="video !== null"> | |
181 | <my-video-share #videoShareModal [video]="video"></my-video-share> | |
182 | <my-video-magnet #videoMagnetModal [video]="video"></my-video-magnet> | |
183 | <my-video-report #videoReportModal [video]="video"></my-video-report> | |
184 | </ng-template> |