diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-07-17 13:13:26 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2018-07-17 13:16:50 +0200 |
commit | 7b4fea0e39be9e74e9aef13e73af9bbd2b1a6397 (patch) | |
tree | a9c5071ed1f6830adcbf10668a2f21e044276842 /tpl | |
parent | b302b3c584b84f22f0e6f187b072180ecbacdfab (diff) | |
download | Shaarli-7b4fea0e39be9e74e9aef13e73af9bbd2b1a6397.tar.gz Shaarli-7b4fea0e39be9e74e9aef13e73af9bbd2b1a6397.tar.zst Shaarli-7b4fea0e39be9e74e9aef13e73af9bbd2b1a6397.zip |
Bunch of improvement for thumbnails integration:
- add a default thumb size value (125x90px)
- improve private vertical bar visual, especially with thumbnails
- translations
- add a sync thumbs button in tool and empty picwall page
- fixes WT download mode in JSON config
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/default/configure.html | 2 | ||||
-rw-r--r-- | tpl/default/linklist.html | 2 | ||||
-rw-r--r-- | tpl/default/picwall.html | 8 | ||||
-rw-r--r-- | tpl/default/tools.html | 8 |
4 files changed, 18 insertions, 2 deletions
diff --git a/tpl/default/configure.html b/tpl/default/configure.html index 9711d151..42e32230 100644 --- a/tpl/default/configure.html +++ b/tpl/default/configure.html | |||
@@ -251,7 +251,7 @@ | |||
251 | {if="! $gd_enabled"} | 251 | {if="! $gd_enabled"} |
252 | {'You need to enable the extension <code>php-gd</code> to use thumbnails.'|t} | 252 | {'You need to enable the extension <code>php-gd</code> to use thumbnails.'|t} |
253 | {elseif="$thumbnails_enabled"} | 253 | {elseif="$thumbnails_enabled"} |
254 | <a href="?do=thumbs_update">{'Synchonize thumbnails'|t}</a> | 254 | <a href="?do=thumbs_update">{'Synchronize thumbnails'|t}</a> |
255 | {/if} | 255 | {/if} |
256 | </span> | 256 | </span> |
257 | </label> | 257 | </label> |
diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index bf88e161..8ea2ce66 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html | |||
@@ -132,7 +132,7 @@ | |||
132 | <div class="linklist-item linklist-item{if="$value.class"} {$value.class}{/if}" data-id="{$value.id}"> | 132 | <div class="linklist-item linklist-item{if="$value.class"} {$value.class}{/if}" data-id="{$value.id}"> |
133 | <div class="linklist-item-title"> | 133 | <div class="linklist-item-title"> |
134 | {if="$thumbnails_enabled && !empty($value.thumbnail)"} | 134 | {if="$thumbnails_enabled && !empty($value.thumbnail)"} |
135 | <div class="linklist-item-thumbnail"> | 135 | <div class="linklist-item-thumbnail" style="width:{$thumbnails_width}px;height:{$thumbnails_height}px;"> |
136 | <div class="thumbnail"> | 136 | <div class="thumbnail"> |
137 | <a href="{$value.real_url}"> | 137 | <a href="{$value.real_url}"> |
138 | {ignore}RainTPL hack: put the 2 src on two different line to avoid path replace bug{/ignore} | 138 | {ignore}RainTPL hack: put the 2 src on two different line to avoid path replace bug{/ignore} |
diff --git a/tpl/default/picwall.html b/tpl/default/picwall.html index 1b8bf3b9..9a0b10dc 100644 --- a/tpl/default/picwall.html +++ b/tpl/default/picwall.html | |||
@@ -12,6 +12,14 @@ | |||
12 | </div> | 12 | </div> |
13 | </div> | 13 | </div> |
14 | {else} | 14 | {else} |
15 | {if="count($linksToDisplay)===0 && $is_logged_in"} | ||
16 | <div class="pure-g pure-alert pure-alert-warning page-single-alert"> | ||
17 | <div class="pure-u-1 center"> | ||
18 | {'There is no cached thumbnail. Try to <a href="?do=thumbs_update">synchronize them</a>.'|t} | ||
19 | </div> | ||
20 | </div> | ||
21 | {/if} | ||
22 | |||
15 | <div class="pure-g"> | 23 | <div class="pure-g"> |
16 | <div class="pure-u-lg-1-6 pure-u-1-24"></div> | 24 | <div class="pure-u-lg-1-6 pure-u-1-24"></div> |
17 | <div class="pure-u-lg-2-3 pure-u-22-24 page-form page-visitor"> | 25 | <div class="pure-u-lg-2-3 pure-u-22-24 page-form page-visitor"> |
diff --git a/tpl/default/tools.html b/tpl/default/tools.html index ece66884..20060994 100644 --- a/tpl/default/tools.html +++ b/tpl/default/tools.html | |||
@@ -45,6 +45,14 @@ | |||
45 | </a> | 45 | </a> |
46 | </div> | 46 | </div> |
47 | 47 | ||
48 | {if="$thumbnails_enabled"} | ||
49 | <div class="tools-item"> | ||
50 | <a href="?do=thumbs_update" title="{'Synchronize all link thumbnails'|t}"> | ||
51 | <span class="pure-button pure-u-lg-2-3 pure-u-3-4">{'Synchronize thumbnails'|t}</span> | ||
52 | </a> | ||
53 | </div> | ||
54 | {/if} | ||
55 | |||
48 | {loop="$tools_plugin"} | 56 | {loop="$tools_plugin"} |
49 | <div class="tools-item"> | 57 | <div class="tools-item"> |
50 | {$value} | 58 | {$value} |