]>
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 | ||
75 | <div class="form-group"> | |
76 | <my-peertube-checkbox | |
77 | *ngIf="isInPlaylistEmbedTab()" | |
78 | inputName="onlyEmbedUrl" [(ngModel)]="customizations.onlyEmbedUrl" | |
79 | i18n-labelText labelText="Only display embed URL" | |
80 | ></my-peertube-checkbox> | |
cf02fbfb | 81 | </div> |
2c8d4697 | 82 | |
de615445 | 83 | <my-plugin-placeholder pluginId="share-modal-playlist-settings"></my-plugin-placeholder> |
63347a0f | 84 | </div> |
3a1fed11 | 85 | </div> |
5f0805d3 | 86 | |
2f4c784a | 87 | |
82f443de | 88 | <div class="video" *ngIf="video"> |
c4a05171 | 89 | <h5 *ngIf="playlist" i18n>Share the video</h5> |
2f4c784a | 90 | |
38225867 NR |
91 | <div *ngIf="isPrivateVideo()" class="alert-private alert alert-warning"> |
92 | <div i18n>This video is private so you won't be able to share it with external users</div> | |
93 | ||
94 | <a i18n class="peertube-button-link orange-button" [routerLink]="[ '/videos/', 'update', video.shortUUID ]" target="_blank" rel="noopener noreferrer"> | |
95 | Update video privacy | |
96 | </a> | |
97 | </div> | |
98 | ||
951b582f | 99 | <div ngbNav #nav="ngbNav" class="nav-tabs" [(activeId)]="activeVideoId"> |
2f4c784a | 100 | |
45c6bcf3 C |
101 | <ng-container ngbNavItem="url"> |
102 | <a ngbNavLink i18n>URL</a> | |
2f4c784a | 103 | |
45c6bcf3 C |
104 | <ng-template ngbNavContent> |
105 | <div class="nav-content"> | |
de615445 | 106 | <my-input-text [value]="videoUrl" [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true"></my-input-text> |
3a1fed11 | 107 | </div> |
3a1fed11 | 108 | </ng-template> |
45c6bcf3 C |
109 | </ng-container> |
110 | ||
111 | <ng-container ngbNavItem="qrcode"> | |
112 | <a ngbNavLink i18n>QR-Code</a> | |
3a1fed11 | 113 | |
45c6bcf3 C |
114 | <ng-template ngbNavContent> |
115 | <div class="nav-content"> | |
de615445 | 116 | <qrcode [qrdata]="videoUrl" [width]="256" level="Q"></qrcode> |
3a1fed11 C |
117 | </div> |
118 | </ng-template> | |
45c6bcf3 C |
119 | </ng-container> |
120 | ||
121 | <ng-container ngbNavItem="embed"> | |
122 | <a ngbNavLink i18n>Embed</a> | |
2f4c784a | 123 | |
45c6bcf3 C |
124 | <ng-template ngbNavContent> |
125 | <div class="nav-content"> | |
a70bf3bd | 126 | <my-input-text |
de615445 | 127 | [value]="customizations.onlyEmbedUrl ? videoEmbedUrl : videoEmbedHTML" (ngModelChange)="onUpdate()" |
f1c86172 | 128 | [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true" |
a70bf3bd | 129 | ></my-input-text> |
3a1fed11 C |
130 | |
131 | <div i18n *ngIf="notSecure()" class="alert alert-warning"> | |
132 | 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). | |
133 | </div> | |
f1c86172 | 134 | |
de615445 | 135 | <div class="embed" [innerHTML]="videoEmbedSafeHTML"></div> |
3a1fed11 C |
136 | </div> |
137 | </ng-template> | |
45c6bcf3 C |
138 | </ng-container> |
139 | ||
140 | </div> | |
3a1fed11 | 141 | |
45c6bcf3 | 142 | <div [ngbNavOutlet]="nav"></div> |
3a1fed11 C |
143 | |
144 | <div class="filters"> | |
2f4c784a | 145 | <div> |
a5cf76af | 146 | <div class="form-group start-at" *ngIf="!video.isLive"> |
2f4c784a | 147 | <my-peertube-checkbox |
3a1fed11 C |
148 | inputName="startAt" [(ngModel)]="customizations.startAtCheckbox" |
149 | i18n-labelText labelText="Start at" | |
2f4c784a C |
150 | ></my-peertube-checkbox> |
151 | ||
152 | <my-timestamp-input | |
3a1fed11 | 153 | [timestamp]="customizations.startAt" |
2f4c784a | 154 | [maxTimestamp]="video.duration" |
3a1fed11 C |
155 | [disabled]="!customizations.startAtCheckbox" |
156 | [(ngModel)]="customizations.startAt" | |
2f4c784a C |
157 | > |
158 | </my-timestamp-input> | |
159 | </div> | |
160 | ||
3a1fed11 | 161 | <div *ngIf="videoCaptions.length !== 0" class="form-group video-caption-block"> |
2f4c784a | 162 | <my-peertube-checkbox |
3a1fed11 C |
163 | inputName="subtitleCheckbox" [(ngModel)]="customizations.subtitleCheckbox" |
164 | i18n-labelText labelText="Auto select subtitle" | |
2f4c784a | 165 | ></my-peertube-checkbox> |
2f4c784a | 166 | |
3a1fed11 | 167 | <div class="peertube-select-container" [ngClass]="{ disabled: !customizations.subtitleCheckbox }"> |
047f9585 | 168 | <select [(ngModel)]="customizations.subtitle" [disabled]="!customizations.subtitleCheckbox" class="form-control"> |
3a1fed11 C |
169 | <option *ngFor="let caption of videoCaptions" [value]="caption.language.id">{{ caption.language.label }}</option> |
170 | </select> | |
171 | </div> | |
2f4c784a | 172 | </div> |
a871d2a2 | 173 | |
4c8749cb | 174 | <div class="form-group" *ngIf="isInVideoEmbedTab()"> |
a871d2a2 | 175 | <my-peertube-checkbox |
a871d2a2 C |
176 | inputName="onlyEmbedUrl" [(ngModel)]="customizations.onlyEmbedUrl" |
177 | i18n-labelText labelText="Only display embed URL" | |
178 | ></my-peertube-checkbox> | |
179 | </div> | |
de615445 C |
180 | |
181 | <my-plugin-placeholder pluginId="share-modal-video-settings"></my-plugin-placeholder> | |
3a1fed11 | 182 | </div> |
2f4c784a | 183 | |
3a1fed11 C |
184 | <div class="advanced-filters collapse-transition" [ngbCollapse]="isAdvancedCustomizationCollapsed"> |
185 | <div> | |
a5cf76af | 186 | <div class="form-group stop-at" *ngIf="!video.isLive"> |
3a1fed11 C |
187 | <my-peertube-checkbox |
188 | inputName="stopAt" [(ngModel)]="customizations.stopAtCheckbox" | |
189 | i18n-labelText labelText="Stop at" | |
190 | ></my-peertube-checkbox> | |
191 | ||
192 | <my-timestamp-input | |
193 | [timestamp]="customizations.stopAt" | |
194 | [maxTimestamp]="video.duration" | |
195 | [disabled]="!customizations.stopAtCheckbox" | |
196 | [(ngModel)]="customizations.stopAt" | |
197 | > | |
198 | </my-timestamp-input> | |
199 | </div> | |
2f4c784a | 200 | |
3a1fed11 C |
201 | <div class="form-group"> |
202 | <my-peertube-checkbox | |
203 | inputName="autoplay" [(ngModel)]="customizations.autoplay" | |
204 | i18n-labelText labelText="Autoplay" | |
205 | ></my-peertube-checkbox> | |
206 | </div> | |
2f4c784a | 207 | |
3a1fed11 C |
208 | <div class="form-group"> |
209 | <my-peertube-checkbox | |
210 | inputName="muted" [(ngModel)]="customizations.muted" | |
211 | i18n-labelText labelText="Muted" | |
212 | ></my-peertube-checkbox> | |
213 | </div> | |
214 | ||
a5cf76af | 215 | <div class="form-group" *ngIf="!video.isLive"> |
3a1fed11 C |
216 | <my-peertube-checkbox |
217 | inputName="loop" [(ngModel)]="customizations.loop" | |
218 | i18n-labelText labelText="Loop" | |
219 | ></my-peertube-checkbox> | |
dd1e2f2f J |
220 | </div> |
221 | ||
a871d2a2 | 222 | <div *ngIf="!isLocalVideo() && !isInVideoEmbedTab()" class="form-group"> |
dd1e2f2f J |
223 | <my-peertube-checkbox |
224 | inputName="originUrl" [(ngModel)]="customizations.originUrl" | |
225 | i18n-labelText labelText="Use origin instance URL" | |
226 | ></my-peertube-checkbox> | |
3a1fed11 | 227 | </div> |
2f4c784a | 228 | </div> |
3a1fed11 | 229 | |
a871d2a2 | 230 | <ng-container *ngIf="isInVideoEmbedTab()"> |
3a1fed11 C |
231 | <div class="form-group"> |
232 | <my-peertube-checkbox | |
233 | inputName="title" [(ngModel)]="customizations.title" | |
234 | i18n-labelText labelText="Display video title" | |
235 | ></my-peertube-checkbox> | |
236 | </div> | |
237 | ||
85302118 C |
238 | <div class="form-group"> |
239 | <my-peertube-checkbox | |
240 | inputName="embedP2P" [(ngModel)]="customizations.embedP2P" | |
241 | i18n-labelText labelText="P2P" | |
242 | ></my-peertube-checkbox> | |
243 | </div> | |
244 | ||
3a1fed11 C |
245 | <div class="form-group"> |
246 | <my-peertube-checkbox | |
247 | inputName="warningTitle" [(ngModel)]="customizations.warningTitle" | |
85302118 | 248 | i18n-labelText labelText="Display privacy warning" [disabled]="!customizations.embedP2P" |
3a1fed11 C |
249 | ></my-peertube-checkbox> |
250 | </div> | |
251 | ||
252 | <div class="form-group"> | |
253 | <my-peertube-checkbox | |
60f013e1 C |
254 | inputName="controlBar" [(ngModel)]="customizations.controlBar" |
255 | i18n-labelText labelText="Display player control bar" | |
3a1fed11 C |
256 | ></my-peertube-checkbox> |
257 | </div> | |
189ab8de C |
258 | |
259 | <div class="form-group"> | |
260 | <my-peertube-checkbox | |
85302118 | 261 | inputName="peertubeLink" [(ngModel)]="customizations.peertubeLink" |
189ab8de C |
262 | i18n-labelText labelText="Display PeerTube button link" |
263 | ></my-peertube-checkbox> | |
264 | </div> | |
3a1fed11 C |
265 | </ng-container> |
266 | </div> | |
de702865 RK |
267 | |
268 | <div (click)="isAdvancedCustomizationCollapsed = !isAdvancedCustomizationCollapsed" role="button" class="advanced-filters-button" | |
269 | [attr.aria-expanded]="!isAdvancedCustomizationCollapsed" aria-controls="collapseBasic"> | |
270 | ||
271 | <ng-container *ngIf="isAdvancedCustomizationCollapsed"> | |
93c728a2 | 272 | <span class="chevron-down"></span> |
de702865 RK |
273 | |
274 | <ng-container i18n> | |
275 | More customization | |
276 | </ng-container> | |
277 | </ng-container> | |
278 | ||
279 | <ng-container *ngIf="!isAdvancedCustomizationCollapsed"> | |
93c728a2 | 280 | <span class="chevron-up"></span> |
de702865 RK |
281 | |
282 | <ng-container i18n> | |
283 | Less customization | |
284 | </ng-container> | |
285 | </ng-container> | |
286 | </div> | |
2f4c784a | 287 | </div> |
63347a0f | 288 | </div> |
11b8762f | 289 | </div> |
4503cb2a | 290 | |
63347a0f | 291 | </ng-template> |