]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/videos/+video-watch/video-watch.component.html
d80b633df15d800359237cc08d2072bf8389e1c6
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / video-watch.component.html
1 <div class="row">
2 <!-- We need the video container for videojs so we just hide it -->
3 <div [hidden]="videoNotFound" id="video-element-wrapper">
4 </div>
5
6 <div i18n *ngIf="videoNotFound" id="video-not-found">Video not found :'(</div>
7
8 <!-- Video information -->
9 <div *ngIf="video" class="margin-content video-bottom">
10 <div class="video-info">
11 <div class="video-info-first-row">
12 <div>
13 <div class="video-info-name">{{ video.name }}</div>
14
15 <div i18n class="video-info-date-views">
16 {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
17 </div>
18
19 <div class="video-info-channel">
20 <a [routerLink]="[ '/video-channels', video.channel.id ]" i18n-title title="Go the channel page">
21 {{ video.channel.displayName }}
22 </a>
23 <!-- Here will be the subscribe button -->
24 <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>
25 </div>
26
27 <div class="video-info-by">
28 <a [routerLink]="[ '/accounts', video.by ]" i18n-title title="Go to the account page">
29 <span i18n>By {{ video.by }}</span>
30 <img [src]="video.accountAvatarUrl" alt="Account avatar" />
31 </a>
32 </div>
33 </div>
34
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" i18n-title title="Like this video" ></span>
42 </div>
43
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" i18n-title title="Dislike this video"></span>
49 </div>
50
51 <div *ngIf="video.support" (click)="showSupportModal()" class="action-button action-button-support">
52 <span class="icon icon-support"></span>
53 <span class="icon-text" i18n>Support</span>
54 </div>
55
56 <div (click)="showShareModal()" class="action-button action-button-share">
57 <span class="icon icon-share"></span>
58 <span class="icon-text" i18n>Share</span>
59 </div>
60
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" i18n-title title="Download the video" href="#" (click)="showDownloadModal($event)">
69 <span class="icon icon-download"></span> <ng-container i18n>Download</ng-container>
70 </a>
71 </li>
72
73 <li *ngIf="isUserLoggedIn()" role="menuitem">
74 <a class="dropdown-item" i18n-title title="Report this video" href="#" (click)="showReportModal($event)">
75 <span class="icon icon-alert"></span> <ng-container i18n>Report</ng-container>
76 </a>
77 </li>
78
79 <li *ngIf="isVideoBlacklistable()" role="menuitem">
80 <a class="dropdown-item" i18n-title title="Blacklist this video" href="#" (click)="blacklistVideo($event)">
81 <span class="icon icon-blacklist"></span> <ng-container i18n>Blacklist</ng-container>
82 </a>
83 </li>
84
85 <li *ngIf="isVideoUpdatable()" role="menuitem">
86 <a class="dropdown-item" i18n-title title="Update this video" href="#" [routerLink]="[ '/videos/update', video.uuid ]">
87 <span class="icon icon-edit"></span> <ng-container i18n>Update</ng-container>
88 </a>
89 </li>
90
91 <li *ngIf="isVideoRemovable()" role="menuitem">
92 <a class="dropdown-item" i18n-title title="Delete this video" href="#" (click)="removeVideo($event)">
93 <span class="icon icon-blacklist"></span> <ng-container i18n>Delete</ng-container>
94 </a>
95 </li>
96 </ul>
97 </div>
98 </div>
99
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>
106 </div>
107
108 <div class="video-info-description">
109 <div class="video-info-description-html" [innerHTML]="videoHTMLDescription"></div>
110
111 <div class="video-info-description-more" *ngIf="completeDescriptionShown === false && video.description?.length >= 250" (click)="showMoreDescription()">
112 <ng-container i18n>Show more</ng-container>
113 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span>
114 <my-loader class="description-loading" [loading]="descriptionLoading"></my-loader>
115 </div>
116
117 <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-info-description-more">
118 <ng-container i18n>Show less</ng-container>
119 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span>
120 </div>
121 </div>
122
123 <div class="video-attributes">
124 <div class="video-attribute">
125 <span i18n class="video-attribute-label">
126 Privacy
127 </span>
128 <span class="video-attribute-value">
129 {{ video.privacy.label }}
130 </span>
131 </div>
132
133 <div class="video-attribute">
134 <span i18n class="video-attribute-label">
135 Category
136 </span>
137 <span class="video-attribute-value">
138 {{ video.category.label }}
139 </span>
140 </div>
141
142 <div class="video-attribute">
143 <span i18n class="video-attribute-label">
144 Licence
145 </span>
146 <span class="video-attribute-value">
147 {{ video.licence.label }}
148 </span>
149 </div>
150
151 <div class="video-attribute">
152 <span i18n class="video-attribute-label">
153 Language
154 </span>
155 <span class="video-attribute-value">
156 {{ video.language.label }}
157 </span>
158 </div>
159
160 <div class="video-attribute">
161 <span i18n class="video-attribute-label">
162 Tags
163 </span>
164
165 <span class="video-attribute-value">
166 {{ getVideoTags() }}
167 </span>
168 </div>
169 </div>
170
171 <my-video-comments [video]="video" [user]="user"></my-video-comments>
172 </div>
173
174 <div class="other-videos">
175 <div i18n class="title-page title-page-single">
176 Other videos
177 </div>
178
179 <div *ngFor="let video of otherVideosDisplayed">
180 <my-video-miniature [video]="video" [user]="user"></my-video-miniature>
181 </div>
182 </div>
183 </div>
184
185
186 <div class="privacy-concerns" *ngIf="hasAlreadyAcceptedPrivacyConcern === false">
187 <strong i18n>Friendly Reminder:</strong>
188 <div class="privacy-concerns-text">
189 <ng-container i18n>
190 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.
191 </ng-container>
192 <a i18n i18n-title title="Get more information" target="_blank" rel="noopener noreferrer" href="/about#p2p-privacy">More information</a>
193 </div>
194
195 <div i18n class="privacy-concerns-okay" (click)="acceptedPrivacyConcern()">
196 OK
197 </div>
198 </div>
199 </div>
200
201 <ng-template [ngIf]="video !== null">
202 <my-video-support #videoSupportModal [video]="video"></my-video-support>
203 <my-video-share #videoShareModal [video]="video"></my-video-share>
204 <my-video-download #videoDownloadModal [video]="video"></my-video-download>
205 <my-video-report #videoReportModal [video]="video"></my-video-report>
206 </ng-template>