-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
793 lines (754 loc) · 34.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>MyPhotos</title>
<meta name="description" content="">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- App Icons -->
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
<link rel="apple-touch-icon" sizes="57x57" href="img/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="img/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="img/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="img/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="img/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="img/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="img/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="img/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="img/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="img/favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/png" href="img/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="img/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="img/android-chrome-192x192.png" sizes="192x192">
<meta name="msapplication-square70x70logo" content="img/smalltile.png" />
<meta name="msapplication-square150x150logo" content="img/mediumtile.png" />
<meta name="msapplication-wide310x150logo" content="img/widetile.png" />
<meta name="msapplication-square310x310logo" content="img/largetile.png" />
<!-- Run full screen when added to homescreen -->
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="MyPhotos">
<!-- Bootstrap -->
<link rel="stylesheet" href="lib/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="lib/bootstrap-datepicker/dist/css/bootstrap-datepicker3.min.css">
<link rel="stylesheet" href="lib/multiselect/css/bootstrap-multiselect.css">
<link rel="stylesheet" href="lib/bootstrap-table/dist/bootstrap-table.css">
<!--
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap3-editable/css/bootstrap-editable.css">
-->
<link rel="stylesheet" href="lib/x-editable/dist/bootstrap3-editable/css/bootstrap-editable.css">
<!-- Add to Homescreen -->
<link rel="stylesheet" href="lib/add-to-homescreen/style/addtohomescreen.css">
<!-- App -->
<link rel="stylesheet" href="css/my.css?v=2">
</head>
<body>
<div id='container'></div>
<script id='template' type='text/ractive'>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<!-- Back/Close buttons -->
{{#if view == 'photo'}}
<button on-click="close" type="button" class="btn btn-default navbar-btn pull-left">
<span class="glyphicon glyphicon-remove"></span> {{t('close')}}
</button>
{{else}}
{{#if view == 'album'}}
<a href="#{{folder.parentpath}}" class="btn btn-default navbar-btn pull-left">
<span class="glyphicon glyphicon-chevron-left"></span> {{t('back')}}
</a>
{{/if}}
{{/if}}
<!-- Collapsible button -->
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#collapsible">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- App/Folder/File title -->
<div class="{{#if view !== 'album'}}hide{{/if}} pull-left">
<a class="{{#if !user.isadmin || folder.smart}}hide{{/if}} navbar-brand addtooltip" title="{{t('folder_opt')}}"
data-toggle="modal" href="#folderModal">
{{folder.name}}
</a>
<span class="{{#if user.isadmin && !folder.smart}}hide{{/if}} navbar-brand">{{folder.name}}</span>
</div>
{{#if view == 'home'}}
<span class="navbar-brand">MyPhotos</span>
{{elseif view == 'photo'}}
<span class="navbar-brand">{{photos[photoid].filename}}</span>
{{/if}}
</div>
<div class="collapse navbar-collapse" id="collapsible">
<ul class="nav navbar-nav navbar-right">
<!-- Search -->
<li class="navbar-form {{#unless view == 'home' || view == 'search'}}hide{{/unless}}">
<div class="has-feedback">
<input type="text" value="{{search}}" id="search" class="form-control" placeholder="{{t('search_albums')}}" autocomplete="off" />
<i class="glyphicon glyphicon-search form-control-feedback"></i>
</div>
</li>
<!-- Sort -->
<li class="dropdown {{#if view !== 'home'}}hide{{/if}}">
<a href="#" class="dropdown-toggle addtooltip" title="{{t('sort')}}" data-toggle="dropdown" role="button">
<span class="glyphicon glyphicon-sort"></span>
<span class="visible-xs-inline">{{t('sort')}}</span>
</a>
<ul class="dropdown-menu" role="menu" style="padding: 0px 10px;">
{{#each album_sort_options:i}}
<li class="radio"><label>
<input type="radio" name="{{album_sort_field}}" value="{{i}}">{{title}}
</label></li>
{{/each}}
</ul>
</li>
<!-- See as -->
<li class="dropdown {{#if !user.isadmin || view !== 'home'}}hide{{/if}}">
<a href="#" class="dropdown-toggle addtooltip" title="{{t('see_as')}}" data-toggle="dropdown" role="button">
<span class="glyphicon glyphicon-eye-open"></span>
<span class="visible-xs-inline">{{t('see_as')}}</span>
</a>
<ul class="dropdown-menu" role="menu" style="padding: 0px 10px;">
<li class="radio"><label>
<input type="radio" name="{{see_as}}" value="">{{user.displayName}}
</label></li>
{{#each groups}}
<li class="radio"><label>
<input type="radio" name="{{see_as}}" value="{{.}}">{{.}}
</label></li>
{{/each}}
</ul>
</li>
<!-- Show hidden -->
<li class="navbar-form {{#if !user.isadmin || view !== 'album' || folder.smart}}hide{{/if}}">
<label class="checkbox">
<input type="checkbox" checked="{{showhidden}}">
{{t('show_hidden')}}
</label>
</li>
<!-- Mark favorite -->
<li class="{{#if view !== 'photo'}}hide{{/if}}">
<a class="addtooltip" title="{{t('mark_favorite')}}{{^touch}} (F){{/}}" on-click="favorite">
<span class="glyphicon glyphicon-star{{^photos[photoid].favorite}}-empty{{/}}"></span>
<span class="visible-xs-inline">{{t('mark_favorite')}}</span>
</a>
</li>
<!-- Hide -->
<li class="{{#if !user.isadmin || view !== 'photo'}}hide{{/if}}">
<a class="addtooltip" title="{{t('hide')}}{{^touch}} (H){{/}}" on-click="hide">
<span class="glyphicon glyphicon-eye-close"></span>
<span class="visible-xs-inline">{{t('hide')}}</span>
</a>
</li>
<!-- Cover -->
<li class="{{#if !user.isadmin || view !== 'photo'}}hide{{/if}}">
<a class="addtooltip" title="{{t('set_cover')}}" on-click="cover">
<span class="glyphicon glyphicon-picture"></span>
<span class="visible-xs-inline">{{t('set_cover')}}</span>
</a>
</li>
<!-- Download Photo -->
<li class="dropdown {{^ view == 'photo'}}hide{{/}}">
<a class="dropdown-toggle addtooltip" title="{{t('dl_photo')}}" data-toggle="dropdown" role="button">
<span class="glyphicon glyphicon-download-alt"></span>
<span class="visible-xs-inline">{{t('dl_photo')}}</span>
</a>
<ul class="dropdown-menu" role="menu">
{{#photos[photoid]}}
<li><a href="{{photos[photoid].previewurl}}&d=1">
<span class="glyphicon glyphicon-picture"></span> {{t('big')}} ({{previewsize}})</a>
</li>
<li><a href="{{photos[photoid].fileurl}}&d=1">
<span class="glyphicon glyphicon-picture"></span> {{t('original')}} ({{size}})</a>
</li>
{{/if}}
</ul>
</li>
<!-- Download Album -->
<li class="dropdown {{^ view == 'album'}}hide{{/}}">
<a class="dropdown-toggle addtooltip" title="{{t('dl_album')}}" data-toggle="dropdown" role="button">
<span class="glyphicon glyphicon-download-alt"></span>
<span class="visible-xs-inline">{{t('dl_album')}}</span>
</a>
<ul class="dropdown-menu" role="menu">
{{#folder}}
<li><a on-click="dl_album:preview">
<span class="glyphicon glyphicon-compressed"></span> {{t('big')}}{{#previewsize}} ({{previewsize}}){{/}}</a>
</li>
<li><a on-click="dl_album:original">
<span class="glyphicon glyphicon-compressed"></span> {{t('original')}}{{#originalsize}} ({{originalsize}}){{/}}</a>
</li>
{{/}}
</ul>
</li>
<div class="modal fade" id="folderModal" tabindex="-1" role="dialog" data-keyboard="false" data-backdrop="static">
<div class="modal-dialog">
<div class="modal-content">
{{#folder}}
<div class="modal-header">
<h4 class="modal-title" id="myModalLabel">{{t('folder_opt')}}</h4>
</div>
<div class="modal-body">
<div class="form-group">
<input type="text" class="form-control" value="{{name}}" placeholder="{{t('album_name')}}">
</div>
<div class="form-group">
<input type="text" class="form-control datepicker" value="{{date}}" placeholder="{{t('album_date')}}">
</div>
<p>Define the visiblity for album <strong>{{name}}</strong></p>
<div class="radio">
<label>
<input type="radio" name="{{visibility}}" value="private" checked>
<span class="glyphicon glyphicon-lock" aria-hidden="true"></span> Private
<p class="help-block">Only visible by Admin accounts.</p>
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="{{visibility}}" value="public">
<span class="glyphicon glyphicon-globe" aria-hidden="true"></span> Public
<p class="help-block">Visible by everyone without authentication.</p>
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="{{visibility}}" value="restricted">
<span class="glyphicon glyphicon-user" aria-hidden="true"></span> Restricted
<p class="help-block">Visible by a selection of groups</p>
</label>
</div>
<div class="col-md-offset-1 {{#if visibility !== 'restricted'}}hide{{/if}}">
<select id="foldergroups" value='{{groups}}' multiple="multiple">
{{#each ../groups}}
<option>{{this}}</option>
{{/each}}
</select>
<div class="checkbox">
<label>
<input on-click="togglekey" type="checkbox" checked="{{folder.haskey}}">
Activate Public Shareable link
</label>
</div>
{{#folder.haskey}}
<div class="input-group input-group-sm">
<span class="input-group-btn">
<button title="change key" on-click="changekey" class="btn btn-default addtooltip" type="button">
<span class="glyphicon glyphicon-retweet"></span>
</button>
</span>
<input type="text" class="form-control" value="{{getpublink()}}" readonly onfocus="this.select();">
</div>
{{/if}}
<div class="checkbox">
<label>
<input type="checkbox" checked="{{folder.notify}}">
Send email notifications to people from these groups
</label>
</div>
<div class="{{#unless notify}}hide{{/unless}}">
<textarea class="form-control" rows="3" id="notif_email_body"></textarea>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button on-click="saveFolder" type="button" class="btn btn-success">
Save{{#visibility == 'restricted' && notify}} & Send{{/if}}
</button>
</div>
{{/if}}
</div>
</div>
</div>
<li title="{{t('sign-in')}}" class="addtooltip g-signin {{#if user}}hide{{/if}}">
<span class="g-signin"
data-width="wide"
data-scope="https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/userinfo.email"
data-clientid="{{client.client_id}}"
data-redirecturi="postmessage"
data-cookiepolicy="single_host_origin"
data-callback="signInCallback">
</span>
</li>
{{#user}}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">{{displayName}} <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
{{#isadmin}}
<li><a data-toggle="modal" href="#cronModal"><span class="glyphicon glyphicon-retweet"></span> {{t('update_library')}}</a></li>
<li><a data-toggle="modal" href="#groupsModal"><span class="glyphicon glyphicon-user"></span> {{t('groups_people')}}</a></li>
<li><a data-toggle="modal" href="#configModal"><span class="glyphicon glyphicon-cog"></span> {{t('settings')}}</a></li>
<li><a on-click="checkupdates"><span class="glyphicon glyphicon-circle-arrow-down"></span> {{t('check_updates')}}</a></li>
{{/if}}
<li><a target="_blank" href="https://github.com/alexylem/myphotos/issues/new"><span class="glyphicon glyphicon-fire"></span> {{t('report-issue')}}</a></li>
<li><a on-click="logout" href="#"><span class="glyphicon glyphicon-log-out"></span> {{t('sign-off')}}</a></li>
</ul>
</li>
{{/if}}
<div class="modal fade" id="cronModal" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>
<h4 class="modal-title">Update Library</h4>
</div>
<div class="modal-body">
{{#if cron.mode}}
<div class="progress">
{{#if cron.striped}}
<div class="progress-bar progress-bar-striped active" role="progressbar" style="width: 100%">
</div>
{{else}}
<span class="percentage">{{cron.progress}}</span>
<div class="progress-bar progress-bar-{{cron.class}} active" role="progressbar" style="width: {{cron.percentage}}%">
</div>
<span class="remaining">{{cron.remaining}}</span>
{{/if}}
</div>
<p class="text-{{cron.class}}">{{cron.text}}</p>
{{else}}
<p>Select a Synchonization mode</p>
<div class="radio">
<label>
<input type="radio" name="{{cron.mode}}" value="fast">
<span class="glyphicon glyphicon-flash" aria-hidden="true"></span> Fast-Sync
<p class="help-block">Only look for new Albums (fastest).</p>
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="{{cron.mode}}" value="folder"
{{#if view=='home'}}disabled{{/if}}>
<span class="glyphicon glyphicon-screenshot" aria-hidden="true"></span> Selected Album only
<p class="help-block">
{{#if view=='home'}}
Only available from within an Album.
{{else}}
Synchronize <strong>{{folder.name}}</strong> and its sub-Albums.
{{/if}}
</p>
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="{{cron.mode}}" value="deep">
<span class="glyphicon glyphicon-retweet" aria-hidden="true"></span> Deep (default)
<p class="help-block">Re-synchronize all Albums (slowest).</p>
</label>
</div>
{{/if}}
</div>
<div class="modal-footer">
{{#if cron.class == 'danger'}}
<button type="button" class="btn btn-default" on-click="ignore">Ignore</button>
{{/if}}
</div>
</div>
</div>
</div>
<!-- Groups & Users -->
<div class="modal fade" id="groupsModal" data-keyboard="false" data-backdrop="static">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="myModalLabel">Groups</h4>
</div>
<div class="modal-body">
{{#if groups}}
<div class="btn-toolbar">
{{#each groups:i}}
<div class="btn-group">
<button type="button" class="btn btn-warning btn-sm {{#if userfilter == this}}active{{/if}}" on-click="filterpeople:{{this}}">{{this}}</button>
<button type="button" class="btn btn-default btn-sm" on-click="removegroup:{{i}}"><span class="glyphicon glyphicon-remove"></span></button>
</div>
{{/each}}
</div>
<br />
{{else}}
<div class="alert alert-info well-sm">
Start by adding some Groups below
</div>
{{/if}}
<form id="addgroupform" class="form-inline">
<div class="form-group">
<input type="text" class="form-control input-sm" value="{{newgroup}}" placeholder="ex: Family" required>
<button class="btn btn-info btn-sm" type="submit"><span class="glyphicon glyphicon-plus"></span></button>
</div>
</form>
<hr />
<h4>People</h4>
{{#if userfilter}}
<div class="well well-sm pull-left">
Showing people in {{userfilter}} <a href="#" class="alert-link" on-click="filterpeople:false">See all</a>
</div>
{{/if}}
<table
id="users"
data-classes="table table-hover table-no-bordered"
data-striped="true"
data-page-size="5"
data-show-pagination-switch="true">
</table>
<!--
<form class="form-inline" on-submit="adduser">
<div class="form-group">
<input type="text" class="form-control input-sm" value="{{newname}}" placeholder="ex: Mum">
</div>
<div class="form-group">
<input type="email" class="form-control input-sm" value="{{newemail}}" placeholder="ex: email@gmail.com">
</div>
<div class="form-group">
<select id="multiselect" class="form-control input-sm" value='{{newgroups}}' multiple="multiple">
{{#each groups}}
<option>{{this}}</option>
{{/each}}
</select>
</div>
<button type="submit" class="btn btn-info btn-sm"><span class="glyphicon glyphicon-plus"></span></button>
</form>
-->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button on-click="saveGroups" type="button" class="btn btn-success">Save</button>
</div>
</div>
</div>
</div>
<!-- Config Modal -->
<div class="modal fade" id="configModal" data-keyboard="false" data-backdrop="static">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<!-- Nav tabs -->
<ul class="nav nav-pills">
<li class="active"><a href="#appearance" data-toggle="tab">Appearance</a></li>
<li><a href="#system" data-toggle="tab">System</a></li>
<li><a href="#security" data-toggle="tab">Security</a></li>
</ul>
</div>
<div class="modal-body form-horizontal">
<div class="tab-content">
<!-- Appearance -->
<div class="tab-pane fade in active" id="appearance">
<div class="form-group">
<label for="language" class="col-sm-3 control-label">Language</label>
<div class="col-sm-9">
<select id="language" value="{{client.language}}" class="form-control">
<option value="">Detect automatically</option>
<option value="en">English</option>
<option value="fr-fr">Français</option>
</select>
</div>
</div>
{{^client.language}}
<div class="form-group">
<label for="fallback_language" class="col-sm-3 control-label">Fallback language</label>
<div class="col-sm-9">
<select id="fallback_language" value="{{client.fallback_language}}" class="form-control">
<option value="en">English</option>
<option value="fr-fr">Français</option>
</select>
<span class="help-block">In case detected language is not available</span>
</div>
</div>
{{/}}
<div class="form-group">
<label class="col-sm-3 control-label">Default album sorting</label>
<div class="col-sm-9">
{{#each album_sort_options:i}}
<div class="radio"><label>
<input type="radio" name="{{client.default_album_sort}}" value="{{i}}">
{{title}}
</label></div>
{{/each}}
</div>
</div>
<div class="form-group">
<label for="week_start" class="col-sm-3 control-label">First day of the week</label>
<div class="col-sm-9">
<input class="form-control" type="number" id="week_start" value="{{client.week_start}}" placeholder="ex: 1">
<span class="help-block">0 is Sunday. 1 is Monday.</span>
</div>
</div>
<div class="form-group">
<label for="log_level" class="col-sm-3 control-label">User notifications</label>
<div class="col-sm-9">
<input id="log_level" class="form-control" type="number" value="{{client.log_level}}" placeholder="ex: 2">
<span class="help-block">
0 to Display only errors (not recommended)<br />
1 to Display all above + warnings (not recommended)<br />
2 to Display all above + success & info messages (<strong>recomended</strong> for production)<br />
3 to Display all above + network exchanges in the console (recommended for troubleshooting)<br />
4 to Display all above + debug information in the console (recommended for development)
</span>
</div>
</div>
</div>
<!-- System -->
<div class="tab-pane fade" id="system">
<div class="form-group">
<label for="photopath" class="col-sm-3 control-label">Photo Library Location</label>
<div class="col-sm-9">
<input class="form-control" type="text" id="photopath" value="{{server.photopath}}" placeholder="ex: /path/to/photos/">
<span class="help-block">Full system path to the photo library. Must end with a trailing slash (/)</span>
</div>
</div>
<div class="form-group">
<label for="notif_email" class="col-sm-3 control-label">Notification email</label>
<div class="col-sm-9">
<input class="form-control" type="text" id="notif_email" value="{{server.notif_email}}" placeholder="ex: email.address@gmail.com">
<span class="help-block">Gmail email address of the sender for email notification to people</span>
</div>
</div>
<div class="form-group">
<label for="notif_from" class="col-sm-3 control-label">Notification display</label>
<div class="col-sm-9">
<input class="form-control" type="text" id="notif_from" value="{{server.notif_from}}" placeholder="ex: MyPhotos">
<span class="help-block">Display name for the above account</span>
</div>
</div>
<div class="form-group">
<label for="notif_password" class="col-sm-3 control-label">Notification password</label>
<div class="col-sm-9">
<input class="form-control" type="password" id="notif_password" value="{{server.notif_password}}">
<span class="help-block">Gmail password for the above account</span>
</div>
</div>
<div class="form-group">
<label for="ga_client_id" class="col-sm-3 control-label">Google Analytics Client Id</label>
<div class="col-sm-9">
<input class="form-control" type="text" id="ga_client_id" value="{{client.ga_client_id}}" placeholder="ex: UA-XXXX-Y">
</div>
</div>
<div class="form-group">
<div class="checkbox col-sm-offset-3 col-sm-9">
<label>
<input type="checkbox" checked="{{client.check_updates}}">
Automatically check updates on startup
</label>
</div>
</div>
</div>
<!-- Security -->
<div class="tab-pane fade" id="security">
<div class="form-group">
<label for="admins" class="col-sm-3 control-label">Admin users</label>
<div class="col-sm-9">
<input class="form-control" type="text" id="admins" value="{{server.admins}}" placeholder="ex: admin1@gmail.com,admin2@gmail.com">
<span class="help-block">Comma separated gmail adresses of admin users</span>
</div>
</div>
<div class="form-group">
<div class="checkbox col-sm-offset-3 col-sm-9">
<label>
<input type="checkbox" checked="{{server.admin_mode}}">
Admin mode
</label>
<span class="help-block">Makes everyone an admin! Defaulted on fresh installs, unflag it when admin users and Google API credentials are correctly set.</span>
</div>
</div>
<div class="form-group">
<label for="defaultvisibility" class="col-sm-3 control-label">Default visibility</label>
<div class="col-sm-9">
<select id="defaultvisibility" value="{{server.defaultvisibility}}" class="form-control">
<option value="private">Private</option>
<option value="restricted">Restricted</option>
<option value="public">Public</option>
</select>
<span class="help-block">Default visibility for new albums</span>
</div>
</div>
<div class="form-group">
<label for="client_id" class="col-sm-3 control-label">Google API Client Id</label>
<div class="col-sm-9">
<input class="form-control" type="text" id="client_id" value="{{server.client_id}}" placeholder="ex: UA-XXXX-Y">
<span class="help-block">Create one in the
<a href="https://console.developers.google.com/project" target="_blank">
Google Developer Console
</a>
</span>
</div>
</div>
<div class="form-group">
<label for="client_secret" class="col-sm-3 control-label">Google API Client Secret</label>
<div class="col-sm-9">
<input class="form-control" type="password" id="client_secret" value="{{server.client_secret}}">
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button on-click="saveConfig" type="button" class="btn btn-success">Save</button>
</div>
</div>
</div>
</div>
</ul>
</div>
</div>
</nav>
<div class="container">
{{#if loading}}
<p class="text-center">
<span class="glyphicon glyphicon-refresh rotate"></span> {{t('loading')}}
</p>
{{elseif view == 'photo'}}
{{^touch}}
<button on-click="previous" type="button" class="btn btn-default btn-lg prv {{^photoid}}hidden{{/}}">
<span class="glyphicon glyphicon-chevron-left"></span>
</button>
{{/}}
{{#photos[photoid]}}
{{#if type == 'image'}}
<div class="view {{#hidden}}private{{/}}" style="background-image: url('{{previewurl}}');"
on-swiperight="previous" on-swipeleft="next">
</div>
{{elseif type == 'video'}}
<div class="view" on-swiperight="previous" on-swipeleft="next">
<video width="100%" height="100%" controls>
<source src="{{fileurl}}" type="video/quicktime">
</video>
</div>
{{elseif type == 'youtube'}}
<div class="view" on-swiperight="previous" on-swipeleft="next">
<iframe class="video" width="100%" height="100%" src="{{previewurl}}" frameborder="0" allowfullscreen="true">
</iframe>
</div>
{{/if}}
{{/}}
{{^touch}}
<button on-click="next" type="button" class="btn btn-default btn-lg nxt {{#if photoid == photos.length-1}}hidden{{/if}}">
<span class="glyphicon glyphicon-chevron-right"></span>
</button>
{{/}}
{{elseif view == 'search'}}
<h5>Search results</h5>
{{#each filter(structure, 'filename', search)}}
<div class="thumb stack">
<a href="#{{filepath}}" style="background-image: url('{{coverurl}}');">
<div class="cover">
<span class="glyphicon glyphicon-{{visibility == 'public' ? 'globe' : (visibility == 'restricted' ? 'user' : 'lock')}}"></span> {{filename}}
</div>
</a>
</div>
{{/each}}
{{else}}
{{#if view == 'home'}}
<h5>{{t('smart_albums')}}</h5>
<div class="thumb stack">
<a href="#favorites" style="background-image: url('');">
<div class="cover">
<span class="glyphicon glyphicon-star"></span> {{t('favorites')}}
</div>
</a>
</div>
<div class="clearfix"></div>
<hr />
{{elseif folder.smart == true}}
<div class="panel panel-default">
<div class="panel-body">
<p><span class="glyphicon glyphicon-info-sign"></span> {{t('contains_favorites')}}</p>
</div>
{{/if}}
{{#if folders}}
<h5>{{t('albums')}}</h5>
{{#each sort(folders, album_sort_options[album_sort_field].field, album_sort_options[album_sort_field].order)}}
<div class="thumb stack">
<a href="#{{filepath}}" style="background-image: url('{{coverurl}}');">
<div class="cover">
<span class="glyphicon glyphicon-{{visibility == 'public' ? 'globe' : (visibility == 'restricted' ? 'user' : 'lock')}}"></span> {{filename}}
</div>
</a>
</div>
{{/each}}
<div class="clearfix"></div>
<hr />
{{#if !user}}
<div class="panel panel-default">
<div class="panel-body">
<h4><span class="glyphicon glyphicon-question-sign"></span> {{t('missing_albums')}}</h4>
<p>{{t('plz_sign_in')}}</p>
<p>
{{t('no_google_account')}}
<a href="https://accounts.google.com/SignUpWithoutGmail" target="_blank">
{{t('create_google_account')}}
</a>
</p>
</div>
</div>
{{/if}}
{{/if}}
{{#if photos}}
<h5>{{t('photos')}}</h5>
{{#each photos}}
<div class="thumb {{#hidden}}{{^showhidden}}hide{{/}} private{{/}} {{type}}" style="background-image: url('{{thumburl}}');">
<a on-click="view:{{@index}}"></a>
</div>
{{/each}}
<div class="clearfix"></div>
<hr />
{{/if}}
<p class="text-center text-muted">
Powered by <a href="https://github.com/alexylem/myphotos#myphotos" target="_blank">MyPhotos</a>.
<a href="#" on-click="send_report">Send Report</a>
</p>
{{/if}}
</div>
</script>
<!-- Modernizr -->
<script src="lib/modernizr/modernizr.custom.69910.js"></script>
<!-- jQuery -->
<script src="lib/jquery/jquery-2.1.1.min.js"></script>
<!-- Ractive -->
<script src='lib/ractive/ractive.min.js'></script>
<!-- manage cache locally
<script src='http://cdn.ractivejs.org/latest/ractive.min.js'></script>
-->
<script src='lib/hammerjs/hammer.min.js'></script> <!-- touch support -->
<script src='lib/ractive-touch/index.js'></script> <!-- ractive touch events -->
<!-- Bootstrap -->
<script src="lib/bootstrap/js/bootstrap.min.js"></script>
<script src="lib/bootstrap-notify/bootstrap-notify.min.js"></script>
<!-- loaded dynamically
<script src="lib/bootstrap-table/dist/bootstrap-table.min.js"></script> https://github.com/wenzhixin/bootstrap-table/issues/839
<script src="lib/bootstrap-table/dist/locale/bootstrap-table-fr-FR.min.js"></script>
<script src="lib/bootstrap-table/dist/extensions/editable/bootstrap-table-editable.min.js"></script>
<script src="lib/x-editable/dist/bootstrap3-editable/js/bootstrap-editable.min.js"></script>
-->
<!-- Localization -->
<script src='lib/i18next/i18next.min.js'></script>
<!-- Other Plugins -->
<script src="lib/filesize.js/lib/filesize.min.js"></script>
<!-- Dynamic script loader -->
<script src="lib/cmd/cmd.js"></script>
<!-- Add to Homescreen -->
<script src="lib/add-to-homescreen/src/addtohomescreen.min.js"></script>
<!-- Async Google Plus sign-in library -->
<script src="https://apis.google.com/js/platform.js"></script>
<script src="https://apis.google.com/js/client:plusone.js"></script>
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
</script>
<!-- App -->
<script src="config.default.js"></script>
<script src="config.js"></script>
<script src="js/utils.js"></script>
<!-- loaded dynamically
<script src="js/framework.js?v=2"></script>
<script src="repository.js?v=2"></script>
-->
<script src="js/my.js"></script>
</body>
</html>