]>
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> | |
60862425 | 5 | <li>Maybe the server {{ video.serverHost }} 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 | 16 | <div class="row"> |
897ec54d | 17 | <!-- We need the video container for videojs so we just hide it --> |
be6a4802 C |
18 | <div [hidden]="videoNotFound" id="video-container"> |
19 | <video id="video-element" class="video-js vjs-peertube-skin"></video> | |
d1992b93 | 20 | </div> |
897ec54d C |
21 | |
22 | <div *ngIf="videoNotFound" id="video-not-found">Video not found :'(</div> | |
dc8bc31b | 23 | </div> |
da932efc | 24 | |
d6e32a2e | 25 | <!-- Video information --> |
d1992b93 | 26 | <div *ngIf="video !== null" id="video-info"> |
09223546 | 27 | <div class="row video-name-views"> |
3eeeb87f | 28 | <div class="col-xs-8 col-md-8 video-name"> |
09223546 C |
29 | {{ video.name }} |
30 | </div> | |
d1992b93 | 31 | |
3eeeb87f | 32 | <div class="col-xs-4 col-md-4 pull-right video-views"> |
09223546 | 33 | {{ video.views}} views |
d1992b93 | 34 | </div> |
09223546 | 35 | </div> |
d1992b93 | 36 | |
09223546 | 37 | <div class="row video-small-blocks"> |
1e1265b3 C |
38 | <div class="col-xs-5 col-xs-3 col-md-3 video-small-block video-small-block-account"> |
39 | <a class="option" title="Access to all videos of this user" [routerLink]="['/videos/list', { field: 'account', search: video.account }]"> | |
4e1b0973 C |
40 | <span class="glyphicon glyphicon-user"></span> |
41 | <span class="video-small-block-text">{{ video.by }}</span> | |
09223546 C |
42 | </a> |
43 | </div> | |
d38b8281 | 44 | |
3eeeb87f | 45 | <div class="col-xs-2 col-md-3 video-small-block video-small-block-share"> |
09223546 C |
46 | <a class="option" (click)="showShareModal()" title="Share the video"> |
47 | <span class="glyphicon glyphicon-share"></span> | |
a01f107b | 48 | <span class="hidden-xs video-small-block-text">Share</span> |
09223546 C |
49 | </a> |
50 | </div> | |
99cc4f49 | 51 | |
3eeeb87f | 52 | <div class="col-xs-2 col-md-3 video-small-block video-small-block-more"> |
09223546 C |
53 | <div class="video-small-block-dropdown" dropdown dropup="true" placement="right"> |
54 | <a class="option" title="Access to more options" dropdownToggle> | |
55 | <span class="glyphicon glyphicon-option-horizontal"></span> | |
a01f107b | 56 | <span class="hidden-xs video-small-block-text">More</span> |
09223546 | 57 | </a> |
05a9feaa | 58 | |
ad42bea3 | 59 | <ul *dropdownMenu class="dropdown-menu" id="more-menu" role="menu" aria-labelledby="single-button"> |
d8e689b8 | 60 | <li *ngIf="canUserUpdateVideo()" role="menuitem"> |
0a6658fd | 61 | <a class="dropdown-item" title="Update this video" href="#" [routerLink]="[ '/videos/edit', video.uuid ]"> |
d8e689b8 C |
62 | <span class="glyphicon glyphicon-pencil"></span> Update |
63 | </a> | |
64 | </li> | |
65 | ||
4f8c0eb0 | 66 | <li role="menuitem"> |
a96aed15 C |
67 | <a class="dropdown-item" title="Download the video" href="#" (click)="showDownloadModal($event)"> |
68 | <span class="glyphicon glyphicon-download-alt"></span> Download | |
05a9feaa C |
69 | </a> |
70 | </li> | |
71 | ||
72 | <li *ngIf="isUserLoggedIn()" role="menuitem"> | |
73 | <a class="dropdown-item" title="Report this video" href="#" (click)="showReportModal($event)"> | |
4f8c0eb0 C |
74 | <span class="glyphicon glyphicon-alert"></span> Report |
75 | </a> | |
76 | </li> | |
198b205c | 77 | |
ab683a8e C |
78 | <li *ngIf="isVideoRemovable()" role="menuitem"> |
79 | <a class="dropdown-item" title="Delete this video" href="#" (click)="removeVideo($event)"> | |
80 | <span class="glyphicon glyphicon-remove"></span> Delete | |
81 | </a> | |
82 | </li> | |
83 | ||
84 | <li *ngIf="isVideoBlacklistable()" role="menuitem"> | |
85 | <a class="dropdown-item" title="Blacklist this video" href="#" (click)="blacklistVideo($event)"> | |
86 | <span class="glyphicon glyphicon-eye-close"></span> Blacklist | |
87 | </a> | |
88 | </li> | |
4f8c0eb0 C |
89 | </ul> |
90 | </div> | |
d1992b93 | 91 | </div> |
d1992b93 | 92 | |
3eeeb87f | 93 | <div class="col-xs-3 col-md-3 video-small-block video-small-block-rating"> |
09223546 C |
94 | <div class="video-small-block-like"> |
95 | <span | |
96 | class="glyphicon glyphicon-thumbs-up" title="Like this video" | |
97 | [ngClass]="{ 'interactive': isUserLoggedIn(), 'activated': userRating === 'like' }" (click)="setLike()" | |
98 | ></span> | |
05a9feaa | 99 | |
09223546 C |
100 | <span class="video-small-block-text"> |
101 | {{ video.likes }} | |
102 | </span> | |
103 | </div> | |
d1992b93 | 104 | |
09223546 C |
105 | <div class="video-small-block-dislike"> |
106 | <span | |
107 | class="glyphicon glyphicon-thumbs-down" title="Dislike this video" | |
108 | [ngClass]="{ 'interactive': isUserLoggedIn(), 'activated': userRating === 'dislike' }" (click)="setDislike()" | |
109 | ></span> | |
6e07c3de | 110 | |
09223546 C |
111 | <span class="video-small-block-text"> |
112 | {{ video.dislikes }} | |
113 | </span> | |
114 | </div> | |
d07137b9 C |
115 | </div> |
116 | </div> | |
117 | ||
09223546 | 118 | <div class="row video-details"> |
3eeeb87f | 119 | <div class="video-details-date-description col-xs-8 col-md-9"> |
09223546 C |
120 | <div class="video-details-date"> |
121 | Published on {{ video.createdAt | date:'short' }} | |
122 | </div> | |
123 | ||
9d9597df | 124 | <div class="video-details-description" [innerHTML]="videoHTMLDescription"></div> |
2de96f4d | 125 | |
80958c78 | 126 | <div class="video-details-description-more" *ngIf="completeDescriptionShown === false && video.description.length === 250" (click)="showMoreDescription()"> |
2de96f4d | 127 | Show more |
80958c78 C |
128 | <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span> |
129 | <my-loader class="description-loading" [loading]="descriptionLoading"></my-loader> | |
2de96f4d C |
130 | </div> |
131 | ||
132 | <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-details-description-more"> | |
133 | Show less | |
80958c78 | 134 | <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span> |
2de96f4d | 135 | </div> |
db216afd | 136 | </div> |
db216afd | 137 | |
3eeeb87f | 138 | <div class="video-details-attributes col-xs-4 col-md-3"> |
fd45e8f4 C |
139 | <div class="video-details-attribute"> |
140 | <span class="video-details-attribute-label"> | |
141 | Privacy: | |
142 | </span> | |
143 | <span class="video-details-attribute-value"> | |
144 | {{ video.privacyLabel }} | |
145 | </span> | |
146 | </div> | |
147 | ||
09223546 C |
148 | <div class="video-details-attribute"> |
149 | <span class="video-details-attribute-label"> | |
150 | Category: | |
151 | </span> | |
152 | <span class="video-details-attribute-value"> | |
153 | {{ video.categoryLabel }} | |
154 | </span> | |
155 | </div> | |
156 | ||
157 | <div class="video-details-attribute"> | |
158 | <span class="video-details-attribute-label"> | |
159 | Licence: | |
160 | </span> | |
161 | <span class="video-details-attribute-value"> | |
162 | {{ video.licenceLabel }} | |
163 | </span> | |
164 | </div> | |
165 | ||
166 | <div class="video-details-attribute"> | |
167 | <span class="video-details-attribute-label"> | |
168 | Language: | |
169 | </span> | |
170 | <span class="video-details-attribute-value"> | |
171 | {{ video.languageLabel }} | |
172 | </span> | |
173 | </div> | |
8ce9e815 C |
174 | |
175 | <div class="video-details-attribute"> | |
176 | <span class="video-details-attribute-label"> | |
177 | Tags: | |
178 | </span> | |
179 | ||
180 | <div class="video-details-tags"> | |
181 | <a *ngFor="let tag of video.tags" [routerLink]="['/videos/list', { field: 'tags', search: tag }]" class="label label-primary"> | |
182 | {{ tag }} | |
183 | </a> | |
184 | </div> | |
185 | </div> | |
186 | ||
d1992b93 C |
187 | </div> |
188 | </div> | |
189 | </div> | |
190 | ||
ad42bea3 | 191 | <ng-template [ngIf]="video !== null"> |
4f8c0eb0 | 192 | <my-video-share #videoShareModal [video]="video"></my-video-share> |
a96aed15 | 193 | <my-video-download #videoDownloadModal [video]="video"></my-video-download> |
4f8c0eb0 | 194 | <my-video-report #videoReportModal [video]="video"></my-video-report> |
ad42bea3 | 195 | </ng-template> |