]>
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 --> |
169310b2 | 24 | <my-help helpType="custom" customHtml="You can subscribe to this account via any ActivityPub-capable fediverse instance. For instance with Mastodon or Pleroma you can type in the search box <strong>@{{video.account.displayName}}@{{video.account.host}}</strong> and subscribe there. Subscription as a PeerTube user is being worked on in <a href='https://github.com/Chocobozzz/PeerTube/issues/470'>#470</a>."></my-help> |
20206dfb | 25 | </div> |
99cc4f49 | 26 | |
1f788f20 | 27 | <div class="video-info-by"> |
170726f5 | 28 | <a [routerLink]="[ '/accounts', video.account.id ]" title="Go the account page"> |
03e12d7c | 29 | <span>By {{ video.by }}</span> |
d3e91a5f | 30 | <img [src]="video.accountAvatarUrl" alt="Account avatar" /> |
66dc5907 | 31 | </a> |
b1fa3eba | 32 | </div> |
1f788f20 | 33 | </div> |
b1fa3eba | 34 | |
1f788f20 C |
35 | <div class="video-actions-rates"> |
36 | <div class="video-actions"> | |
37 | <div | |
38 | *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()" | |
39 | class="action-button action-button-like" | |
40 | > | |
41 | <span class="icon icon-like" title="Like this video" ></span> | |
20206dfb C |
42 | </div> |
43 | ||
1f788f20 C |
44 | <div |
45 | *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()" | |
46 | class="action-button action-button-dislike" | |
47 | > | |
48 | <span class="icon icon-dislike" title="Dislike this video"></span> | |
49 | </div> | |
6a9e1d42 | 50 | |
3bf1ec2e | 51 | <div *ngIf="video.support" (click)="showSupportModal()" class="action-button action-button-support"> |
07fa4c97 C |
52 | <span class="icon icon-support"></span> |
53 | <span class="icon-text">Support</span> | |
54 | </div> | |
55 | ||
196b7790 | 56 | <div (click)="showShareModal()" class="action-button action-button-share"> |
1f788f20 | 57 | <span class="icon icon-share"></span> |
07fa4c97 | 58 | <span class="icon-text">Share</span> |
1f788f20 | 59 | </div> |
6e07c3de | 60 | |
1f788f20 C |
61 | <div class="action-more" dropdown dropup="true" placement="right"> |
62 | <div class="action-button" dropdownToggle> | |
63 | <span class="icon icon-more"></span> | |
64 | </div> | |
65 | ||
66 | <ul *dropdownMenu class="dropdown-menu" id="more-menu" role="menu" aria-labelledby="single-button"> | |
67 | <li role="menuitem"> | |
68 | <a class="dropdown-item" title="Download the video" href="#" (click)="showDownloadModal($event)"> | |
69 | <span class="icon icon-download"></span> Download | |
70 | </a> | |
71 | </li> | |
72 | ||
73 | <li *ngIf="isUserLoggedIn()" role="menuitem"> | |
74 | <a class="dropdown-item" title="Report this video" href="#" (click)="showReportModal($event)"> | |
75 | <span class="icon icon-alert"></span> Report | |
76 | </a> | |
77 | </li> | |
78 | ||
79 | <li *ngIf="isVideoBlacklistable()" role="menuitem"> | |
80 | <a class="dropdown-item" title="Blacklist this video" href="#" (click)="blacklistVideo($event)"> | |
81 | <span class="icon icon-blacklist"></span> Blacklist | |
82 | </a> | |
83 | </li> | |
84 | ||
85 | <li *ngIf="isVideoUpdatable()" role="menuitem"> | |
86 | <a class="dropdown-item" title="Update this video" href="#" [routerLink]="[ '/videos/edit', video.uuid ]"> | |
87 | <span class="icon icon-edit"></span> Update | |
88 | </a> | |
89 | </li> | |
90 | ||
91 | <li *ngIf="isVideoRemovable()" role="menuitem"> | |
92 | <a class="dropdown-item" title="Delete this video" href="#" (click)="removeVideo($event)"> | |
93 | <span class="icon icon-blacklist"></span> Delete | |
94 | </a> | |
95 | </li> | |
96 | </ul> | |
97 | </div> | |
98 | </div> | |
d07137b9 | 99 | |
1f788f20 C |
100 | <div |
101 | class="video-info-likes-dislikes-bar" | |
102 | *ngIf="video.likes !== 0 || video.dislikes !== 0" [tooltip]="likesBarTooltipText"> | |
103 | <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div> | |
104 | </div> | |
105 | </div> | |
20206dfb | 106 | </div> |
09223546 | 107 | |
20206dfb C |
108 | <div class="video-info-description"> |
109 | <div class="video-info-description-html" [innerHTML]="videoHTMLDescription"></div> | |
2de96f4d | 110 | |
4001b3bc | 111 | <div class="video-info-description-more" *ngIf="completeDescriptionShown === false && video.description?.length >= 250" (click)="showMoreDescription()"> |
20206dfb C |
112 | Show more |
113 | <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span> | |
114 | <my-loader class="description-loading" [loading]="descriptionLoading"></my-loader> | |
115 | </div> | |
2de96f4d | 116 | |
20206dfb C |
117 | <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-info-description-more"> |
118 | Show less | |
119 | <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span> | |
120 | </div> | |
2de96f4d | 121 | </div> |
db216afd | 122 | |
20206dfb C |
123 | <div class="video-attributes"> |
124 | <div class="video-attribute"> | |
125 | <span class="video-attribute-label"> | |
126 | Privacy | |
127 | </span> | |
128 | <span class="video-attribute-value"> | |
09700934 | 129 | {{ video.privacy.label }} |
20206dfb C |
130 | </span> |
131 | </div> | |
fd45e8f4 | 132 | |
20206dfb C |
133 | <div class="video-attribute"> |
134 | <span class="video-attribute-label"> | |
135 | Category | |
136 | </span> | |
137 | <span class="video-attribute-value"> | |
09700934 | 138 | {{ video.category.label }} |
20206dfb C |
139 | </span> |
140 | </div> | |
09223546 | 141 | |
20206dfb C |
142 | <div class="video-attribute"> |
143 | <span class="video-attribute-label"> | |
144 | Licence | |
145 | </span> | |
146 | <span class="video-attribute-value"> | |
09700934 | 147 | {{ video.licence.label }} |
20206dfb C |
148 | </span> |
149 | </div> | |
09223546 | 150 | |
20206dfb C |
151 | <div class="video-attribute"> |
152 | <span class="video-attribute-label"> | |
153 | Language | |
154 | </span> | |
155 | <span class="video-attribute-value"> | |
09700934 | 156 | {{ video.language.label }} |
20206dfb C |
157 | </span> |
158 | </div> | |
8ce9e815 | 159 | |
20206dfb C |
160 | <div class="video-attribute"> |
161 | <span class="video-attribute-label"> | |
162 | Tags | |
163 | </span> | |
8ce9e815 | 164 | |
20206dfb C |
165 | <span class="video-attribute-value"> |
166 | {{ getVideoTags() }} | |
167 | </span> | |
168 | </div> | |
8ce9e815 | 169 | </div> |
b1fa3eba | 170 | |
4635f59d | 171 | <my-video-comments [video]="video" [user]="user"></my-video-comments> |
41c3dfac C |
172 | </div> |
173 | ||
20206dfb C |
174 | <div class="other-videos"> |
175 | <div class="title-page title-page-single"> | |
176 | Other videos | |
177 | </div> | |
178 | ||
57a49263 | 179 | <div *ngFor="let video of otherVideosDisplayed"> |
20206dfb C |
180 | <my-video-miniature [video]="video" [user]="user"></my-video-miniature> |
181 | </div> | |
d1992b93 C |
182 | </div> |
183 | </div> | |
2b3b76ab C |
184 | |
185 | ||
186 | <div class="privacy-concerns" *ngIf="hasAlreadyAcceptedPrivacyConcern === false"> | |
187 | <strong>Friendly Reminder:</strong> | |
188 | <div class="privacy-concerns-text"> | |
189 | 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 | 190 | <a title="Get more information" target="_blank" rel="noopener noreferrer" href="/about#p2p-privacy">More information</a> |
2b3b76ab C |
191 | </div> |
192 | ||
193 | <div class="privacy-concerns-okay" (click)="acceptedPrivacyConcern()"> | |
194 | OK | |
195 | </div> | |
196 | </div> | |
d1992b93 C |
197 | </div> |
198 | ||
ad42bea3 | 199 | <ng-template [ngIf]="video !== null"> |
07fa4c97 | 200 | <my-video-support #videoSupportModal [video]="video"></my-video-support> |
4f8c0eb0 | 201 | <my-video-share #videoShareModal [video]="video"></my-video-share> |
a96aed15 | 202 | <my-video-download #videoDownloadModal [video]="video"></my-video-download> |
4f8c0eb0 | 203 | <my-video-report #videoReportModal [video]="video"></my-video-report> |
ad42bea3 | 204 | </ng-template> |