]>
Commit | Line | Data |
---|---|---|
63347a0f C |
1 | <ng-template #modal let-hide="close"> |
2 | <div class="modal-header"> | |
3 | <h4 i18n class="modal-title">Share</h4> | |
457bb213 | 4 | <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon> |
63347a0f | 5 | </div> |
cf02fbfb | 6 | |
3a1fed11 | 7 | |
63347a0f | 8 | <div class="modal-body"> |
951b582f | 9 | |
82f443de | 10 | <div class="playlist" *ngIf="playlist"> |
c4a05171 | 11 | <h5 i18n *ngIf="video">Share the playlist</h5> |
2f4c784a | 12 | |
38225867 NR |
13 | <div *ngIf="isPrivatePlaylist()" class="alert-private alert alert-warning"> |
14 | <div i18n>This playlist is private so you won't be able to share it with external users</div> | |
15 | ||
16 | <a i18n class="peertube-button-link orange-button" [routerLink]="[ '/my-library/video-playlists/update', playlist.uuid ]" target="_blank" rel="noopener noreferrer"> | |
17 | Update playlist privacy | |
18 | </a> | |
19 | </div> | |
20 | ||
951b582f C |
21 | <div ngbNav #nav="ngbNav" class="nav-tabs" [(activeId)]="activePlaylistId"> |
22 | ||
23 | <ng-container ngbNavItem="url"> | |
24 | <a ngbNavLink i18n>URL</a> | |
25 | ||
26 | <ng-template ngbNavContent> | |
27 | <div class="nav-content"> | |
de615445 | 28 | <my-input-text [value]="playlistUrl" [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true"></my-input-text> |
951b582f C |
29 | </div> |
30 | </ng-template> | |
31 | </ng-container> | |
32 | ||
33 | <ng-container ngbNavItem="qrcode"> | |
34 | <a ngbNavLink i18n>QR-Code</a> | |
35 | ||
36 | <ng-template ngbNavContent> | |
37 | <div class="nav-content"> | |
de615445 | 38 | <qrcode [qrdata]="playlistUrl" [width]="256" level="Q"></qrcode> |
951b582f C |
39 | </div> |
40 | </ng-template> | |
41 | </ng-container> | |
42 | ||
43 | <ng-container ngbNavItem="embed"> | |
44 | <a ngbNavLink i18n>Embed</a> | |
45 | ||
46 | <ng-template ngbNavContent> | |
47 | <div class="nav-content"> | |
a70bf3bd | 48 | <my-input-text |
de615445 | 49 | [value]="customizations.onlyEmbedUrl ? playlistEmbedUrl : playlistEmbedHTML" (change)="onUpdate()" |
f1c86172 | 50 | [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true" |
a70bf3bd | 51 | ></my-input-text> |
951b582f C |
52 | |
53 | <div i18n *ngIf="notSecure()" class="alert alert-warning"> | |
54 | The url is not secured (no HTTPS), so the embed video won't work on HTTPS websites (web browsers block non secured HTTP requests on HTTPS websites). | |
55 | </div> | |
f1c86172 | 56 | |
de615445 | 57 | <div class="embed" [innerHTML]="playlistEmbedSafeHTML"></div> |
951b582f C |
58 | </div> |
59 | </ng-template> | |
60 | </ng-container> | |
61 | ||
62 | </div> | |
63 | ||
64 | <div [ngbNavOutlet]="nav"></div> | |
2f4c784a | 65 | |
3a1fed11 | 66 | <div class="filters"> |
2f4c784a | 67 | |
82f443de | 68 | <div class="form-group" *ngIf="video"> |
a871d2a2 | 69 | <my-peertube-checkbox |
de615445 | 70 | inputName="includeVideoInPlaylist" [(ngModel)]="customizations.includeVideoInPlaylist" |
a871d2a2 C |
71 | i18n-labelText labelText="Share the playlist at this video position" |
72 | ></my-peertube-checkbox> | |
73 | </div> | |
74 | ||
cadc1a1b W |
75 | <ng-container *ngIf="isInPlaylistEmbedTab()"> |
76 | <div class="form-group"> | |
77 | <my-peertube-checkbox | |
78 | inputName="onlyEmbedUrl" [(ngModel)]="customizations.onlyEmbedUrl" | |
79 | i18n-labelText labelText="Only display embed URL" | |
80 | ></my-peertube-checkbox> | |
81 | </div> | |
82 | ||
83 | <div class="form-group"> | |
84 | <my-peertube-checkbox | |
85 | inputName="responsive" [(ngModel)]="customizations.responsive" | |
86 | i18n-labelText labelText="Responsive embed" | |
87 | ></my-peertube-checkbox> | |
88 | </div> | |
89 | </ng-container> | |
2c8d4697 | 90 | |
de615445 | 91 | <my-plugin-placeholder pluginId="share-modal-playlist-settings"></my-plugin-placeholder> |
63347a0f | 92 | </div> |
3a1fed11 | 93 | </div> |
5f0805d3 | 94 | |
2f4c784a | 95 | |
82f443de | 96 | <div class="video" *ngIf="video"> |
c4a05171 | 97 | <h5 *ngIf="playlist" i18n>Share the video</h5> |
2f4c784a | 98 | |
38225867 NR |
99 | <div *ngIf="isPrivateVideo()" class="alert-private alert alert-warning"> |
100 | <div i18n>This video is private so you won't be able to share it with external users</div> | |
101 | ||
102 | <a i18n class="peertube-button-link orange-button" [routerLink]="[ '/videos/', 'update', video.shortUUID ]" target="_blank" rel="noopener noreferrer"> | |
103 | Update video privacy | |
104 | </a> | |
105 | </div> | |
106 | ||
951b582f | 107 | <div ngbNav #nav="ngbNav" class="nav-tabs" [(activeId)]="activeVideoId"> |
2f4c784a | 108 | |
45c6bcf3 C |
109 | <ng-container ngbNavItem="url"> |
110 | <a ngbNavLink i18n>URL</a> | |
2f4c784a | 111 | |
45c6bcf3 C |
112 | <ng-template ngbNavContent> |
113 | <div class="nav-content"> | |
de615445 | 114 | <my-input-text [value]="videoUrl" [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true"></my-input-text> |
3a1fed11 | 115 | </div> |
3a1fed11 | 116 | </ng-template> |
45c6bcf3 C |
117 | </ng-container> |
118 | ||
119 | <ng-container ngbNavItem="qrcode"> | |
120 | <a ngbNavLink i18n>QR-Code</a> | |
3a1fed11 | 121 | |
45c6bcf3 C |
122 | <ng-template ngbNavContent> |
123 | <div class="nav-content"> | |
de615445 | 124 | <qrcode [qrdata]="videoUrl" [width]="256" level="Q"></qrcode> |
3a1fed11 C |
125 | </div> |
126 | </ng-template> | |
45c6bcf3 C |
127 | </ng-container> |
128 | ||
129 | <ng-container ngbNavItem="embed"> | |
130 | <a ngbNavLink i18n>Embed</a> | |
2f4c784a | 131 | |
45c6bcf3 C |
132 | <ng-template ngbNavContent> |
133 | <div class="nav-content"> | |
a70bf3bd | 134 | <my-input-text |
de615445 | 135 | [value]="customizations.onlyEmbedUrl ? videoEmbedUrl : videoEmbedHTML" (ngModelChange)="onUpdate()" |
f1c86172 | 136 | [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true" |
a70bf3bd | 137 | ></my-input-text> |
3a1fed11 C |
138 | |
139 | <div i18n *ngIf="notSecure()" class="alert alert-warning"> | |
140 | The url is not secured (no HTTPS), so the embed video won't work on HTTPS websites (web browsers block non secured HTTP requests on HTTPS websites). | |
141 | </div> | |
f1c86172 | 142 | |
de615445 | 143 | <div class="embed" [innerHTML]="videoEmbedSafeHTML"></div> |
3a1fed11 C |
144 | </div> |
145 | </ng-template> | |
45c6bcf3 C |
146 | </ng-container> |
147 | ||
148 | </div> | |
3a1fed11 | 149 | |
45c6bcf3 | 150 | <div [ngbNavOutlet]="nav"></div> |
3a1fed11 C |
151 | |
152 | <div class="filters"> | |
2f4c784a | 153 | <div> |
a5cf76af | 154 | <div class="form-group start-at" *ngIf="!video.isLive"> |
2f4c784a | 155 | <my-peertube-checkbox |
3a1fed11 C |
156 | inputName="startAt" [(ngModel)]="customizations.startAtCheckbox" |
157 | i18n-labelText labelText="Start at" | |
2f4c784a C |
158 | ></my-peertube-checkbox> |
159 | ||
160 | <my-timestamp-input | |
3a1fed11 | 161 | [timestamp]="customizations.startAt" |
2f4c784a | 162 | [maxTimestamp]="video.duration" |
3a1fed11 C |
163 | [disabled]="!customizations.startAtCheckbox" |
164 | [(ngModel)]="customizations.startAt" | |
2f4c784a C |
165 | > |
166 | </my-timestamp-input> | |
167 | </div> | |
168 | ||
3a1fed11 | 169 | <div *ngIf="videoCaptions.length !== 0" class="form-group video-caption-block"> |
2f4c784a | 170 | <my-peertube-checkbox |
3a1fed11 C |
171 | inputName="subtitleCheckbox" [(ngModel)]="customizations.subtitleCheckbox" |
172 | i18n-labelText labelText="Auto select subtitle" | |
2f4c784a | 173 | ></my-peertube-checkbox> |
2f4c784a | 174 | |
3a1fed11 | 175 | <div class="peertube-select-container" [ngClass]="{ disabled: !customizations.subtitleCheckbox }"> |
047f9585 | 176 | <select [(ngModel)]="customizations.subtitle" [disabled]="!customizations.subtitleCheckbox" class="form-control"> |
3a1fed11 C |
177 | <option *ngFor="let caption of videoCaptions" [value]="caption.language.id">{{ caption.language.label }}</option> |
178 | </select> | |
179 | </div> | |
2f4c784a | 180 | </div> |
a871d2a2 | 181 | |
4c8749cb | 182 | <div class="form-group" *ngIf="isInVideoEmbedTab()"> |
a871d2a2 | 183 | <my-peertube-checkbox |
a871d2a2 C |
184 | inputName="onlyEmbedUrl" [(ngModel)]="customizations.onlyEmbedUrl" |
185 | i18n-labelText labelText="Only display embed URL" | |
186 | ></my-peertube-checkbox> | |
187 | </div> | |
de615445 C |
188 | |
189 | <my-plugin-placeholder pluginId="share-modal-video-settings"></my-plugin-placeholder> | |
3a1fed11 | 190 | </div> |
2f4c784a | 191 | |
3a1fed11 C |
192 | <div class="advanced-filters collapse-transition" [ngbCollapse]="isAdvancedCustomizationCollapsed"> |
193 | <div> | |
a5cf76af | 194 | <div class="form-group stop-at" *ngIf="!video.isLive"> |
3a1fed11 C |
195 | <my-peertube-checkbox |
196 | inputName="stopAt" [(ngModel)]="customizations.stopAtCheckbox" | |
197 | i18n-labelText labelText="Stop at" | |
198 | ></my-peertube-checkbox> | |
199 | ||
200 | <my-timestamp-input | |
201 | [timestamp]="customizations.stopAt" | |
202 | [maxTimestamp]="video.duration" | |
203 | [disabled]="!customizations.stopAtCheckbox" | |
204 | [(ngModel)]="customizations.stopAt" | |
205 | > | |
206 | </my-timestamp-input> | |
207 | </div> | |
2f4c784a | 208 | |
3a1fed11 C |
209 | <div class="form-group"> |
210 | <my-peertube-checkbox | |
211 | inputName="autoplay" [(ngModel)]="customizations.autoplay" | |
212 | i18n-labelText labelText="Autoplay" | |
213 | ></my-peertube-checkbox> | |
214 | </div> | |
2f4c784a | 215 | |
3a1fed11 C |
216 | <div class="form-group"> |
217 | <my-peertube-checkbox | |
218 | inputName="muted" [(ngModel)]="customizations.muted" | |
219 | i18n-labelText labelText="Muted" | |
220 | ></my-peertube-checkbox> | |
221 | </div> | |
222 | ||
a5cf76af | 223 | <div class="form-group" *ngIf="!video.isLive"> |
3a1fed11 C |
224 | <my-peertube-checkbox |
225 | inputName="loop" [(ngModel)]="customizations.loop" | |
226 | i18n-labelText labelText="Loop" | |
227 | ></my-peertube-checkbox> | |
dd1e2f2f J |
228 | </div> |
229 | ||
a871d2a2 | 230 | <div *ngIf="!isLocalVideo() && !isInVideoEmbedTab()" class="form-group"> |
dd1e2f2f J |
231 | <my-peertube-checkbox |
232 | inputName="originUrl" [(ngModel)]="customizations.originUrl" | |
233 | i18n-labelText labelText="Use origin instance URL" | |
234 | ></my-peertube-checkbox> | |
3a1fed11 | 235 | </div> |
2f4c784a | 236 | </div> |
3a1fed11 | 237 | |
a871d2a2 | 238 | <ng-container *ngIf="isInVideoEmbedTab()"> |
cadc1a1b W |
239 | <div class="form-group"> |
240 | <my-peertube-checkbox | |
241 | inputName="responsive" [(ngModel)]="customizations.responsive" | |
242 | i18n-labelText labelText="Responsive embed" | |
243 | ></my-peertube-checkbox> | |
244 | </div> | |
245 | ||
3a1fed11 C |
246 | <div class="form-group"> |
247 | <my-peertube-checkbox | |
248 | inputName="title" [(ngModel)]="customizations.title" | |
249 | i18n-labelText labelText="Display video title" | |
250 | ></my-peertube-checkbox> | |
251 | </div> | |
252 | ||
85302118 C |
253 | <div class="form-group"> |
254 | <my-peertube-checkbox | |
255 | inputName="embedP2P" [(ngModel)]="customizations.embedP2P" | |
256 | i18n-labelText labelText="P2P" | |
257 | ></my-peertube-checkbox> | |
258 | </div> | |
259 | ||
3a1fed11 C |
260 | <div class="form-group"> |
261 | <my-peertube-checkbox | |
262 | inputName="warningTitle" [(ngModel)]="customizations.warningTitle" | |
85302118 | 263 | i18n-labelText labelText="Display privacy warning" [disabled]="!customizations.embedP2P" |
3a1fed11 C |
264 | ></my-peertube-checkbox> |
265 | </div> | |
266 | ||
267 | <div class="form-group"> | |
268 | <my-peertube-checkbox | |
60f013e1 C |
269 | inputName="controlBar" [(ngModel)]="customizations.controlBar" |
270 | i18n-labelText labelText="Display player control bar" | |
3a1fed11 C |
271 | ></my-peertube-checkbox> |
272 | </div> | |
189ab8de C |
273 | |
274 | <div class="form-group"> | |
275 | <my-peertube-checkbox | |
85302118 | 276 | inputName="peertubeLink" [(ngModel)]="customizations.peertubeLink" |
189ab8de C |
277 | i18n-labelText labelText="Display PeerTube button link" |
278 | ></my-peertube-checkbox> | |
279 | </div> | |
3a1fed11 C |
280 | </ng-container> |
281 | </div> | |
de702865 RK |
282 | |
283 | <div (click)="isAdvancedCustomizationCollapsed = !isAdvancedCustomizationCollapsed" role="button" class="advanced-filters-button" | |
284 | [attr.aria-expanded]="!isAdvancedCustomizationCollapsed" aria-controls="collapseBasic"> | |
285 | ||
286 | <ng-container *ngIf="isAdvancedCustomizationCollapsed"> | |
93c728a2 | 287 | <span class="chevron-down"></span> |
de702865 RK |
288 | |
289 | <ng-container i18n> | |
290 | More customization | |
291 | </ng-container> | |
292 | </ng-container> | |
293 | ||
294 | <ng-container *ngIf="!isAdvancedCustomizationCollapsed"> | |
93c728a2 | 295 | <span class="chevron-up"></span> |
de702865 RK |
296 | |
297 | <ng-container i18n> | |
298 | Less customization | |
299 | </ng-container> | |
300 | </ng-container> | |
301 | </div> | |
2f4c784a | 302 | </div> |
63347a0f | 303 | </div> |
11b8762f | 304 | </div> |
4503cb2a | 305 | |
63347a0f | 306 | </ng-template> |