diff options
author | Olivier Paroz <github@oparoz.com> | 2015-05-21 00:59:49 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-09-15 17:29:25 +0300 |
commit | 377ba7c149377864787d075f051e6179bd31244a (patch) | |
tree | 7aa2a5faf793e78cae6aeae2b84b32d448010c28 /templates | |
parent | e545218678e14ecaef55a8db307fa8a89f07241a (diff) |
Turn the Gallery button into a switch
Implementation of #145
Diffstat (limited to 'templates')
-rw-r--r-- | templates/part.content.php | 14 | ||||
-rw-r--r-- | templates/public.php | 14 |
2 files changed, 19 insertions, 9 deletions
diff --git a/templates/part.content.php b/templates/part.content.php index 33db81ad..f7187f48 100644 --- a/templates/part.content.php +++ b/templates/part.content.php @@ -35,7 +35,6 @@ style( [ 'styles', 'mobile', - 'gallerybutton', 'github-markdown', 'slideshow' ] @@ -43,18 +42,23 @@ style( ?> <div id="controls"> <div id='breadcrumbs'></div> - <!-- toggle for opening shared picture view as file list --> - <div id="openAsFileListButton" class="button"> + <!-- toggle for opening the current album as file list --> + <div id="filelist-button" class="button view-switcher left-switch-button inactive-button"> <img class="svg" src="<?php print_unescaped( image_path('core', 'actions/toggle-filelist.svg') ); ?>" alt="<?php p($l->t('File list')); ?>"/> </div> - <div id="sort-name-button" class="button left-sort-button"> + <div class="button view-switcher right-switch-button disabled-button"> + <img class="svg" src="<?php print_unescaped( + image_path('core', 'actions/toggle-pictures.svg') + ); ?>" alt="<?php p($l->t('Picture view')); ?>"/> + </div> + <div id="sort-name-button" class="button sorting left-switch-button"> <img class="svg" src="<?php print_unescaped( image_path($_['appName'], 'nameasc.svg') ); ?>" alt="<?php p($l->t('Sort by name')); ?>"/> </div> - <div id="sort-date-button" class="button right-sort-button"> + <div id="sort-date-button" class="button sorting right-switch-button"> <img class="svg" src="<?php print_unescaped( image_path($_['appName'], 'dateasc.svg') ); ?>" alt="<?php p($l->t('Sort by date')); ?>"/> diff --git a/templates/public.php b/templates/public.php index f33c7155..f497aa91 100644 --- a/templates/public.php +++ b/templates/public.php @@ -103,18 +103,24 @@ style( <div id="app"> <div id="controls"> <div id="breadcrumbs"></div> - <!-- toggle for opening shared picture view as file list --> - <div id="openAsFileListButton" class="button"> + <!-- toggle for opening the current album as file list --> + <div id="filelist-button" + class="button view-switcher left-switch-button inactive-button "> <img class="svg" src="<?php print_unescaped( image_path('core', 'actions/toggle-filelist.svg') ); ?>" alt="<?php p($l->t('File list')); ?>"/> </div> - <div id="sort-name-button" class="button left-sort-button"> + <div class="button view-switcher right-switch-button disabled-button"> + <img class="svg" src="<?php print_unescaped( + image_path('core', 'actions/toggle-pictures.svg') + ); ?>" alt="<?php p($l->t('Picture view')); ?>"/> + </div> + <div id="sort-name-button" class="button sorting left-switch-button"> <img class="svg" src="<?php print_unescaped( image_path($_['appName'], 'nameasc.svg') ); ?>" alt="<?php p($l->t('Sort by name')); ?>"/> </div> - <div id="sort-date-button" class="button right-sort-button"> + <div id="sort-date-button" class="button sorting right-switch-button"> <img class="svg" src="<?php print_unescaped( image_path($_['appName'], 'dateasc.svg') ); ?>" alt="<?php p($l->t('Sort by date')); ?>"/> |