]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/video-watch.component.html
Fix embed view with search params
[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 -->
09edde40 3 <div [hidden]="videoNotFound" id="video-element-wrapper">
d1992b93 4 </div>
897ec54d 5
989e526a 6 <div i18n *ngIf="videoNotFound" id="video-not-found">Video not found :'(</div>
b1fa3eba 7
20206dfb
C
8 <!-- Video information -->
9 <div *ngIf="video" class="margin-content video-bottom">
10 <div class="video-info">
1f788f20
C
11 <div class="video-info-first-row">
12 <div>
13 <div class="video-info-name">{{ video.name }}</div>
d1992b93 14
989e526a 15 <div i18n class="video-info-date-views">
2922e048 16 {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
20206dfb 17 </div>
d38b8281 18
1f788f20 19 <div class="video-info-channel">
989e526a 20 <a [routerLink]="[ '/video-channels', video.channel.id ]" i18n-title title="Go the channel page">
95166f9a
C
21 {{ video.channel.displayName }}
22 </a>
1f788f20 23 <!-- Here will be the subscribe button -->
989e526a 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.displayName}}@{{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 25 </div>
99cc4f49 26
1f788f20 27 <div class="video-info-by">
989e526a
C
28 <a [routerLink]="[ '/accounts', video.by ]" i18n-title title="Go the account page">
29 <span i18n>By {{ video.by }}</span>
d3e91a5f 30 <img [src]="video.accountAvatarUrl" alt="Account avatar" />
66dc5907 31 </a>
b1fa3eba 32 </div>
1f788f20 33 </div>
b1fa3eba 34
1f788f20
C
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 >
989e526a 41 <span class="icon icon-like" i18n-title title="Like this video" ></span>
20206dfb
C
42 </div>
43
1f788f20
C
44 <div
45 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()"
46 class="action-button action-button-dislike"
47 >
989e526a 48 <span class="icon icon-dislike" i18n-title title="Dislike this video"></span>
1f788f20 49 </div>
6a9e1d42 50
3bf1ec2e 51 <div *ngIf="video.support" (click)="showSupportModal()" class="action-button action-button-support">
07fa4c97 52 <span class="icon icon-support"></span>
989e526a 53 <span class="icon-text" i18n>Support</span>
07fa4c97
C
54 </div>
55
196b7790 56 <div (click)="showShareModal()" class="action-button action-button-share">
1f788f20 57 <span class="icon icon-share"></span>
989e526a 58 <span class="icon-text" i18n>Share</span>
1f788f20 59 </div>
6e07c3de 60
1f788f20
C
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">
989e526a
C
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>
1f788f20
C
70 </a>
71 </li>
72
73 <li *ngIf="isUserLoggedIn()" role="menuitem">
989e526a
C
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>
1f788f20
C
76 </a>
77 </li>
78
79 <li *ngIf="isVideoBlacklistable()" role="menuitem">
989e526a
C
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>
1f788f20
C
82 </a>
83 </li>
84
85 <li *ngIf="isVideoUpdatable()" role="menuitem">
989e526a
C
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>
1f788f20
C
88 </a>
89 </li>
90
91 <li *ngIf="isVideoRemovable()" role="menuitem">
989e526a
C
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>
1f788f20
C
94 </a>
95 </li>
96 </ul>
97 </div>
98 </div>
d07137b9 99
1f788f20
C
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>
20206dfb 106 </div>
09223546 107
20206dfb
C
108 <div class="video-info-description">
109 <div class="video-info-description-html" [innerHTML]="videoHTMLDescription"></div>
2de96f4d 110
4001b3bc 111 <div class="video-info-description-more" *ngIf="completeDescriptionShown === false && video.description?.length >= 250" (click)="showMoreDescription()">
989e526a 112 <ng-container i18n>Show more</ng-container>
20206dfb
C
113 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span>
114 <my-loader class="description-loading" [loading]="descriptionLoading"></my-loader>
115 </div>
2de96f4d 116
20206dfb 117 <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-info-description-more">
989e526a 118 <ng-container i18n>Show less</ng-container>
20206dfb
C
119 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span>
120 </div>
2de96f4d 121 </div>
db216afd 122
20206dfb
C
123 <div class="video-attributes">
124 <div class="video-attribute">
989e526a 125 <span i18n class="video-attribute-label">
20206dfb
C
126 Privacy
127 </span>
128 <span class="video-attribute-value">
09700934 129 {{ video.privacy.label }}
20206dfb
C
130 </span>
131 </div>
fd45e8f4 132
20206dfb 133 <div class="video-attribute">
989e526a 134 <span i18n class="video-attribute-label">
20206dfb
C
135 Category
136 </span>
137 <span class="video-attribute-value">
09700934 138 {{ video.category.label }}
20206dfb
C
139 </span>
140 </div>
09223546 141
20206dfb 142 <div class="video-attribute">
989e526a 143 <span i18n class="video-attribute-label">
20206dfb
C
144 Licence
145 </span>
146 <span class="video-attribute-value">
09700934 147 {{ video.licence.label }}
20206dfb
C
148 </span>
149 </div>
09223546 150
20206dfb 151 <div class="video-attribute">
989e526a 152 <span i18n class="video-attribute-label">
20206dfb
C
153 Language
154 </span>
155 <span class="video-attribute-value">
09700934 156 {{ video.language.label }}
20206dfb
C
157 </span>
158 </div>
8ce9e815 159
20206dfb 160 <div class="video-attribute">
989e526a 161 <span i18n class="video-attribute-label">
20206dfb
C
162 Tags
163 </span>
8ce9e815 164
20206dfb
C
165 <span class="video-attribute-value">
166 {{ getVideoTags() }}
167 </span>
168 </div>
8ce9e815 169 </div>
b1fa3eba 170
4635f59d 171 <my-video-comments [video]="video" [user]="user"></my-video-comments>
41c3dfac
C
172 </div>
173
20206dfb 174 <div class="other-videos">
989e526a 175 <div i18n class="title-page title-page-single">
20206dfb
C
176 Other videos
177 </div>
178
57a49263 179 <div *ngFor="let video of otherVideosDisplayed">
20206dfb
C
180 <my-video-miniature [video]="video" [user]="user"></my-video-miniature>
181 </div>
d1992b93
C
182 </div>
183 </div>
2b3b76ab
C
184
185
186 <div class="privacy-concerns" *ngIf="hasAlreadyAcceptedPrivacyConcern === false">
989e526a 187 <strong i18n>Friendly Reminder:</strong>
2b3b76ab 188 <div class="privacy-concerns-text">
989e526a
C
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>
2b3b76ab
C
193 </div>
194
989e526a 195 <div i18n class="privacy-concerns-okay" (click)="acceptedPrivacyConcern()">
2b3b76ab
C
196 OK
197 </div>
198 </div>
d1992b93
C
199</div>
200
ad42bea3 201<ng-template [ngIf]="video !== null">
07fa4c97 202 <my-video-support #videoSupportModal [video]="video"></my-video-support>
4f8c0eb0 203 <my-video-share #videoShareModal [video]="video"></my-video-share>
a96aed15 204 <my-video-download #videoDownloadModal [video]="video"></my-video-download>
4f8c0eb0 205 <my-video-report #videoReportModal [video]="video"></my-video-report>
ad42bea3 206</ng-template>