]>
Commit | Line | Data |
---|---|---|
d1992b93 | 1 | <div class="row"> |
897ec54d | 2 | <!-- We need the video container for videojs so we just hide it --> |
09edde40 | 3 | <div [hidden]="videoNotFound" id="video-element-wrapper"> |
d1992b93 | 4 | </div> |
897ec54d C |
5 | |
6 | <div *ngIf="videoNotFound" id="video-not-found">Video not found :'(</div> | |
b1fa3eba | 7 | |
20206dfb C |
8 | <!-- Video information --> |
9 | <div *ngIf="video" class="margin-content video-bottom"> | |
10 | <div class="video-info"> | |
1f788f20 C |
11 | <div class="video-info-first-row"> |
12 | <div> | |
13 | <div class="video-info-name">{{ video.name }}</div> | |
d1992b93 | 14 | |
1f788f20 | 15 | <div class="video-info-date-views"> |
2922e048 | 16 | {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views |
20206dfb | 17 | </div> |
d38b8281 | 18 | |
1f788f20 | 19 | <div class="video-info-channel"> |
95166f9a C |
20 | <a [routerLink]="[ '/video-channels', video.channel.id ]" title="Go the channel page"> |
21 | {{ video.channel.displayName }} | |
22 | </a> | |
1f788f20 | 23 | <!-- Here will be the subscribe button --> |
20206dfb | 24 | </div> |
99cc4f49 | 25 | |
1f788f20 | 26 | <div class="video-info-by"> |
170726f5 | 27 | <a [routerLink]="[ '/accounts', video.account.id ]" title="Go the account page"> |
03e12d7c | 28 | <span>By {{ video.by }}</span> |
d3e91a5f | 29 | <img [src]="video.accountAvatarUrl" alt="Account avatar" /> |
66dc5907 | 30 | </a> |
b1fa3eba | 31 | </div> |
1f788f20 | 32 | </div> |
b1fa3eba | 33 | |
1f788f20 C |
34 | <div class="video-actions-rates"> |
35 | <div class="video-actions"> | |
36 | <div | |
37 | *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()" | |
38 | class="action-button action-button-like" | |
39 | > | |
40 | <span class="icon icon-like" title="Like this video" ></span> | |
20206dfb C |
41 | </div> |
42 | ||
1f788f20 C |
43 | <div |
44 | *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()" | |
45 | class="action-button action-button-dislike" | |
46 | > | |
47 | <span class="icon icon-dislike" title="Dislike this video"></span> | |
48 | </div> | |
6a9e1d42 | 49 | |
3bf1ec2e | 50 | <div *ngIf="video.support" (click)="showSupportModal()" class="action-button action-button-support"> |
07fa4c97 C |
51 | <span class="icon icon-support"></span> |
52 | <span class="icon-text">Support</span> | |
53 | </div> | |
54 | ||
196b7790 | 55 | <div (click)="showShareModal()" class="action-button action-button-share"> |
1f788f20 | 56 | <span class="icon icon-share"></span> |
07fa4c97 | 57 | <span class="icon-text">Share</span> |
1f788f20 | 58 | </div> |
6e07c3de | 59 | |
1f788f20 C |
60 | <div class="action-more" dropdown dropup="true" placement="right"> |
61 | <div class="action-button" dropdownToggle> | |
62 | <span class="icon icon-more"></span> | |
63 | </div> | |
64 | ||
65 | <ul *dropdownMenu class="dropdown-menu" id="more-menu" role="menu" aria-labelledby="single-button"> | |
66 | <li role="menuitem"> | |
67 | <a class="dropdown-item" title="Download the video" href="#" (click)="showDownloadModal($event)"> | |
68 | <span class="icon icon-download"></span> Download | |
69 | </a> | |
70 | </li> | |
71 | ||
72 | <li *ngIf="isUserLoggedIn()" role="menuitem"> | |
73 | <a class="dropdown-item" title="Report this video" href="#" (click)="showReportModal($event)"> | |
74 | <span class="icon icon-alert"></span> Report | |
75 | </a> | |
76 | </li> | |
77 | ||
78 | <li *ngIf="isVideoBlacklistable()" role="menuitem"> | |
79 | <a class="dropdown-item" title="Blacklist this video" href="#" (click)="blacklistVideo($event)"> | |
80 | <span class="icon icon-blacklist"></span> Blacklist | |
81 | </a> | |
82 | </li> | |
83 | ||
84 | <li *ngIf="isVideoUpdatable()" role="menuitem"> | |
85 | <a class="dropdown-item" title="Update this video" href="#" [routerLink]="[ '/videos/edit', video.uuid ]"> | |
86 | <span class="icon icon-edit"></span> Update | |
87 | </a> | |
88 | </li> | |
89 | ||
90 | <li *ngIf="isVideoRemovable()" role="menuitem"> | |
91 | <a class="dropdown-item" title="Delete this video" href="#" (click)="removeVideo($event)"> | |
92 | <span class="icon icon-blacklist"></span> Delete | |
93 | </a> | |
94 | </li> | |
95 | </ul> | |
96 | </div> | |
97 | </div> | |
d07137b9 | 98 | |
1f788f20 C |
99 | <div |
100 | class="video-info-likes-dislikes-bar" | |
101 | *ngIf="video.likes !== 0 || video.dislikes !== 0" [tooltip]="likesBarTooltipText"> | |
102 | <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div> | |
103 | </div> | |
104 | </div> | |
20206dfb | 105 | </div> |
09223546 | 106 | |
20206dfb C |
107 | <div class="video-info-description"> |
108 | <div class="video-info-description-html" [innerHTML]="videoHTMLDescription"></div> | |
2de96f4d | 109 | |
4001b3bc | 110 | <div class="video-info-description-more" *ngIf="completeDescriptionShown === false && video.description?.length >= 250" (click)="showMoreDescription()"> |
20206dfb C |
111 | Show more |
112 | <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span> | |
113 | <my-loader class="description-loading" [loading]="descriptionLoading"></my-loader> | |
114 | </div> | |
2de96f4d | 115 | |
20206dfb C |
116 | <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-info-description-more"> |
117 | Show less | |
118 | <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span> | |
119 | </div> | |
2de96f4d | 120 | </div> |
db216afd | 121 | |
20206dfb C |
122 | <div class="video-attributes"> |
123 | <div class="video-attribute"> | |
124 | <span class="video-attribute-label"> | |
125 | Privacy | |
126 | </span> | |
127 | <span class="video-attribute-value"> | |
09700934 | 128 | {{ video.privacy.label }} |
20206dfb C |
129 | </span> |
130 | </div> | |
fd45e8f4 | 131 | |
20206dfb C |
132 | <div class="video-attribute"> |
133 | <span class="video-attribute-label"> | |
134 | Category | |
135 | </span> | |
136 | <span class="video-attribute-value"> | |
09700934 | 137 | {{ video.category.label }} |
20206dfb C |
138 | </span> |
139 | </div> | |
09223546 | 140 | |
20206dfb C |
141 | <div class="video-attribute"> |
142 | <span class="video-attribute-label"> | |
143 | Licence | |
144 | </span> | |
145 | <span class="video-attribute-value"> | |
09700934 | 146 | {{ video.licence.label }} |
20206dfb C |
147 | </span> |
148 | </div> | |
09223546 | 149 | |
20206dfb C |
150 | <div class="video-attribute"> |
151 | <span class="video-attribute-label"> | |
152 | Language | |
153 | </span> | |
154 | <span class="video-attribute-value"> | |
09700934 | 155 | {{ video.language.label }} |
20206dfb C |
156 | </span> |
157 | </div> | |
8ce9e815 | 158 | |
20206dfb C |
159 | <div class="video-attribute"> |
160 | <span class="video-attribute-label"> | |
161 | Tags | |
162 | </span> | |
8ce9e815 | 163 | |
20206dfb C |
164 | <span class="video-attribute-value"> |
165 | {{ getVideoTags() }} | |
166 | </span> | |
167 | </div> | |
8ce9e815 | 168 | </div> |
b1fa3eba | 169 | |
4635f59d | 170 | <my-video-comments [video]="video" [user]="user"></my-video-comments> |
41c3dfac C |
171 | </div> |
172 | ||
20206dfb C |
173 | <div class="other-videos"> |
174 | <div class="title-page title-page-single"> | |
175 | Other videos | |
176 | </div> | |
177 | ||
57a49263 | 178 | <div *ngFor="let video of otherVideosDisplayed"> |
20206dfb C |
179 | <my-video-miniature [video]="video" [user]="user"></my-video-miniature> |
180 | </div> | |
d1992b93 C |
181 | </div> |
182 | </div> | |
2b3b76ab C |
183 | |
184 | ||
185 | <div class="privacy-concerns" *ngIf="hasAlreadyAcceptedPrivacyConcern === false"> | |
186 | <strong>Friendly Reminder:</strong> | |
187 | <div class="privacy-concerns-text"> | |
188 | The sharing system used by this video implies that some technical information about your system (such as a public IP address) can be accessed publicly. | |
632c5e36 | 189 | <a title="Get more information" target="_blank" rel="noopener noreferrer" href="/about#p2p-privacy">More information</a> |
2b3b76ab C |
190 | </div> |
191 | ||
192 | <div class="privacy-concerns-okay" (click)="acceptedPrivacyConcern()"> | |
193 | OK | |
194 | </div> | |
195 | </div> | |
d1992b93 C |
196 | </div> |
197 | ||
ad42bea3 | 198 | <ng-template [ngIf]="video !== null"> |
07fa4c97 | 199 | <my-video-support #videoSupportModal [video]="video"></my-video-support> |
4f8c0eb0 | 200 | <my-video-share #videoShareModal [video]="video"></my-video-share> |
a96aed15 | 201 | <my-video-download #videoDownloadModal [video]="video"></my-video-download> |
4f8c0eb0 | 202 | <my-video-report #videoReportModal [video]="video"></my-video-report> |
ad42bea3 | 203 | </ng-template> |