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