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