]>
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 C |
10 | <div class="playlist" *ngIf="playlist"> |
11 | <div class="title-page title-page-single" i18n *ngIf="video">Share the playlist</div> | |
2f4c784a | 12 | |
951b582f C |
13 | <div ngbNav #nav="ngbNav" class="nav-tabs" [(activeId)]="activePlaylistId"> |
14 | ||
15 | <ng-container ngbNavItem="url"> | |
16 | <a ngbNavLink i18n>URL</a> | |
17 | ||
18 | <ng-template ngbNavContent> | |
19 | <div class="nav-content"> | |
20 | ||
f8b530e0 | 21 | <my-input-toggle-hidden [value]="getPlaylistUrl()" [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true"></my-input-toggle-hidden> |
951b582f C |
22 | </div> |
23 | </ng-template> | |
24 | </ng-container> | |
25 | ||
26 | <ng-container ngbNavItem="qrcode"> | |
27 | <a ngbNavLink i18n>QR-Code</a> | |
28 | ||
29 | <ng-template ngbNavContent> | |
30 | <div class="nav-content"> | |
31 | <qrcode [qrdata]="getPlaylistUrl()" [size]="256" level="Q"></qrcode> | |
32 | </div> | |
33 | </ng-template> | |
34 | </ng-container> | |
35 | ||
36 | <ng-container ngbNavItem="embed"> | |
37 | <a ngbNavLink i18n>Embed</a> | |
38 | ||
39 | <ng-template ngbNavContent> | |
40 | <div class="nav-content"> | |
f8b530e0 | 41 | <my-input-toggle-hidden [value]="getPlaylistIframeCode()" [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true"></my-input-toggle-hidden> |
951b582f C |
42 | |
43 | <div i18n *ngIf="notSecure()" class="alert alert-warning"> | |
44 | 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). | |
45 | </div> | |
46 | </div> | |
47 | </ng-template> | |
48 | </ng-container> | |
49 | ||
50 | </div> | |
51 | ||
52 | <div [ngbNavOutlet]="nav"></div> | |
2f4c784a | 53 | |
3a1fed11 | 54 | <div class="filters"> |
2f4c784a | 55 | |
82f443de | 56 | <div class="form-group" *ngIf="video"> |
951b582f C |
57 | <my-peertube-checkbox inputName="includeVideoInPlaylist" [(ngModel)]="includeVideoInPlaylist" i18n-labelText |
58 | labelText="Share the playlist at this video position"></my-peertube-checkbox> | |
cf02fbfb | 59 | </div> |
2c8d4697 | 60 | |
63347a0f | 61 | </div> |
3a1fed11 | 62 | </div> |
5f0805d3 | 63 | |
2f4c784a | 64 | |
82f443de C |
65 | <div class="video" *ngIf="video"> |
66 | <div class="title-page title-page-single" *ngIf="playlist" i18n>Share the video</div> | |
2f4c784a | 67 | |
951b582f | 68 | <div ngbNav #nav="ngbNav" class="nav-tabs" [(activeId)]="activeVideoId"> |
2f4c784a | 69 | |
45c6bcf3 C |
70 | <ng-container ngbNavItem="url"> |
71 | <a ngbNavLink i18n>URL</a> | |
2f4c784a | 72 | |
45c6bcf3 C |
73 | <ng-template ngbNavContent> |
74 | <div class="nav-content"> | |
f8b530e0 | 75 | <my-input-toggle-hidden [value]="getVideoUrl()" [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true"></my-input-toggle-hidden> |
3a1fed11 | 76 | </div> |
3a1fed11 | 77 | </ng-template> |
45c6bcf3 C |
78 | </ng-container> |
79 | ||
80 | <ng-container ngbNavItem="qrcode"> | |
81 | <a ngbNavLink i18n>QR-Code</a> | |
3a1fed11 | 82 | |
45c6bcf3 C |
83 | <ng-template ngbNavContent> |
84 | <div class="nav-content"> | |
be27ef3b | 85 | <qrcode [qrdata]="getVideoUrl()" [size]="256" level="Q"></qrcode> |
3a1fed11 C |
86 | </div> |
87 | </ng-template> | |
45c6bcf3 C |
88 | </ng-container> |
89 | ||
90 | <ng-container ngbNavItem="embed"> | |
91 | <a ngbNavLink i18n>Embed</a> | |
2f4c784a | 92 | |
45c6bcf3 C |
93 | <ng-template ngbNavContent> |
94 | <div class="nav-content"> | |
f8b530e0 | 95 | <my-input-toggle-hidden [value]="getVideoIframeCode()" [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true"></my-input-toggle-hidden> |
3a1fed11 C |
96 | |
97 | <div i18n *ngIf="notSecure()" class="alert alert-warning"> | |
98 | 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). | |
99 | </div> | |
100 | </div> | |
101 | </ng-template> | |
45c6bcf3 C |
102 | </ng-container> |
103 | ||
104 | </div> | |
3a1fed11 | 105 | |
45c6bcf3 | 106 | <div [ngbNavOutlet]="nav"></div> |
3a1fed11 C |
107 | |
108 | <div class="filters"> | |
2f4c784a | 109 | <div> |
a5cf76af | 110 | <div class="form-group start-at" *ngIf="!video.isLive"> |
2f4c784a | 111 | <my-peertube-checkbox |
3a1fed11 C |
112 | inputName="startAt" [(ngModel)]="customizations.startAtCheckbox" |
113 | i18n-labelText labelText="Start at" | |
2f4c784a C |
114 | ></my-peertube-checkbox> |
115 | ||
116 | <my-timestamp-input | |
3a1fed11 | 117 | [timestamp]="customizations.startAt" |
2f4c784a | 118 | [maxTimestamp]="video.duration" |
3a1fed11 C |
119 | [disabled]="!customizations.startAtCheckbox" |
120 | [(ngModel)]="customizations.startAt" | |
2f4c784a C |
121 | > |
122 | </my-timestamp-input> | |
123 | </div> | |
124 | ||
3a1fed11 | 125 | <div *ngIf="videoCaptions.length !== 0" class="form-group video-caption-block"> |
2f4c784a | 126 | <my-peertube-checkbox |
3a1fed11 C |
127 | inputName="subtitleCheckbox" [(ngModel)]="customizations.subtitleCheckbox" |
128 | i18n-labelText labelText="Auto select subtitle" | |
2f4c784a | 129 | ></my-peertube-checkbox> |
2f4c784a | 130 | |
3a1fed11 C |
131 | <div class="peertube-select-container" [ngClass]="{ disabled: !customizations.subtitleCheckbox }"> |
132 | <select [(ngModel)]="customizations.subtitle" [disabled]="!customizations.subtitleCheckbox"> | |
133 | <option *ngFor="let caption of videoCaptions" [value]="caption.language.id">{{ caption.language.label }}</option> | |
134 | </select> | |
135 | </div> | |
2f4c784a | 136 | </div> |
3a1fed11 | 137 | </div> |
2f4c784a | 138 | |
3a1fed11 C |
139 | <div class="advanced-filters collapse-transition" [ngbCollapse]="isAdvancedCustomizationCollapsed"> |
140 | <div> | |
a5cf76af | 141 | <div class="form-group stop-at" *ngIf="!video.isLive"> |
3a1fed11 C |
142 | <my-peertube-checkbox |
143 | inputName="stopAt" [(ngModel)]="customizations.stopAtCheckbox" | |
144 | i18n-labelText labelText="Stop at" | |
145 | ></my-peertube-checkbox> | |
146 | ||
147 | <my-timestamp-input | |
148 | [timestamp]="customizations.stopAt" | |
149 | [maxTimestamp]="video.duration" | |
150 | [disabled]="!customizations.stopAtCheckbox" | |
151 | [(ngModel)]="customizations.stopAt" | |
152 | > | |
153 | </my-timestamp-input> | |
154 | </div> | |
2f4c784a | 155 | |
3a1fed11 C |
156 | <div class="form-group"> |
157 | <my-peertube-checkbox | |
158 | inputName="autoplay" [(ngModel)]="customizations.autoplay" | |
159 | i18n-labelText labelText="Autoplay" | |
160 | ></my-peertube-checkbox> | |
161 | </div> | |
2f4c784a | 162 | |
3a1fed11 C |
163 | <div class="form-group"> |
164 | <my-peertube-checkbox | |
165 | inputName="muted" [(ngModel)]="customizations.muted" | |
166 | i18n-labelText labelText="Muted" | |
167 | ></my-peertube-checkbox> | |
168 | </div> | |
169 | ||
a5cf76af | 170 | <div class="form-group" *ngIf="!video.isLive"> |
3a1fed11 C |
171 | <my-peertube-checkbox |
172 | inputName="loop" [(ngModel)]="customizations.loop" | |
173 | i18n-labelText labelText="Loop" | |
174 | ></my-peertube-checkbox> | |
dd1e2f2f J |
175 | </div> |
176 | ||
177 | <div *ngIf="!isLocalVideo() && !isVideoInEmbedTab()" class="form-group"> | |
178 | <my-peertube-checkbox | |
179 | inputName="originUrl" [(ngModel)]="customizations.originUrl" | |
180 | i18n-labelText labelText="Use origin instance URL" | |
181 | ></my-peertube-checkbox> | |
3a1fed11 | 182 | </div> |
2f4c784a | 183 | </div> |
3a1fed11 | 184 | |
951b582f | 185 | <ng-container *ngIf="isVideoInEmbedTab()"> |
3a1fed11 C |
186 | <div class="form-group"> |
187 | <my-peertube-checkbox | |
188 | inputName="title" [(ngModel)]="customizations.title" | |
189 | i18n-labelText labelText="Display video title" | |
190 | ></my-peertube-checkbox> | |
191 | </div> | |
192 | ||
193 | <div class="form-group"> | |
194 | <my-peertube-checkbox | |
195 | inputName="warningTitle" [(ngModel)]="customizations.warningTitle" | |
196 | i18n-labelText labelText="Display privacy warning" | |
197 | ></my-peertube-checkbox> | |
198 | </div> | |
199 | ||
200 | <div class="form-group"> | |
201 | <my-peertube-checkbox | |
202 | inputName="controls" [(ngModel)]="customizations.controls" | |
203 | i18n-labelText labelText="Display player controls" | |
204 | ></my-peertube-checkbox> | |
205 | </div> | |
189ab8de C |
206 | |
207 | <div class="form-group"> | |
208 | <my-peertube-checkbox | |
209 | inputName="controls" [(ngModel)]="customizations.peertubeLink" | |
210 | i18n-labelText labelText="Display PeerTube button link" | |
211 | ></my-peertube-checkbox> | |
212 | </div> | |
3a1fed11 C |
213 | </ng-container> |
214 | </div> | |
de702865 RK |
215 | |
216 | <div (click)="isAdvancedCustomizationCollapsed = !isAdvancedCustomizationCollapsed" role="button" class="advanced-filters-button" | |
217 | [attr.aria-expanded]="!isAdvancedCustomizationCollapsed" aria-controls="collapseBasic"> | |
218 | ||
219 | <ng-container *ngIf="isAdvancedCustomizationCollapsed"> | |
220 | <span class="glyphicon glyphicon-menu-down"></span> | |
221 | ||
222 | <ng-container i18n> | |
223 | More customization | |
224 | </ng-container> | |
225 | </ng-container> | |
226 | ||
227 | <ng-container *ngIf="!isAdvancedCustomizationCollapsed"> | |
228 | <span class="glyphicon glyphicon-menu-up"></span> | |
229 | ||
230 | <ng-container i18n> | |
231 | Less customization | |
232 | </ng-container> | |
233 | </ng-container> | |
234 | </div> | |
2f4c784a | 235 | </div> |
63347a0f | 236 | </div> |
11b8762f | 237 | </div> |
4503cb2a | 238 | |
63347a0f | 239 | </ng-template> |