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