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