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