diff options
author | Olivier Paroz <github@oparoz.com> | 2015-04-06 20:48:40 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-04-06 20:48:40 +0300 |
commit | 5c8891181a22dc91a25a6081a7c50872583e42dc (patch) | |
tree | d11ce62a2c9294ca9c2d30789d66ba8692d508a8 /templates | |
parent | 30f01af148a0d5839d47a00a638513ecadfe61cd (diff) |
First shot at a sorting interface
A first step for #90 and #91
Diffstat (limited to 'templates')
-rw-r--r-- | templates/part.content.php | 10 | ||||
-rw-r--r-- | templates/public.php | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/templates/part.content.php b/templates/part.content.php index e0f7b7cd..3903e848 100644 --- a/templates/part.content.php +++ b/templates/part.content.php @@ -40,6 +40,16 @@ style( 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"> + <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"> + <img class="svg" src="<?php print_unescaped( + image_path($_['appName'], 'dateasc.svg') + ); ?>" alt="<?php p($l->t('Sort by date')); ?>"/> + </div> <span class="right"> <div id="album-info-button" class="button"> <img class="svg" src="<?php print_unescaped( diff --git a/templates/public.php b/templates/public.php index 311b334f..9b23d9cc 100644 --- a/templates/public.php +++ b/templates/public.php @@ -72,6 +72,16 @@ style( 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"> + <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"> + <img class="svg" src="<?php print_unescaped( + image_path($_['appName'], 'dateasc.svg') + ); ?>" alt="<?php p($l->t('Sort by date')); ?>"/> + </div> <span class="right"> <div id="album-info-button" class="button"> <img class="svg" src="<?php print_unescaped( |