aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/picwall.html
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-06-13 11:22:14 +0200
committerArthurHoaro <arthur@hoa.ro>2020-07-23 21:19:21 +0200
commit818b3193ffabec57501e3bdfa997206e3c0671ef (patch)
treef5a4d3cc23ac367dde617b849561177fc20d767a /tpl/default/picwall.html
parentc22fa57a5505fe95fd01860e3d3dfbb089f869cd (diff)
downloadShaarli-818b3193ffabec57501e3bdfa997206e3c0671ef.tar.gz
Shaarli-818b3193ffabec57501e3bdfa997206e3c0671ef.tar.zst
Shaarli-818b3193ffabec57501e3bdfa997206e3c0671ef.zip
Explicitly define base and asset path in templates
With the new routes, all pages are not all at the same folder level anymore (e.g. /shaare and /shaare/123), so we can't just use './' everywhere. The most consistent way to handle this is to prefix all path with the proper variable, and handle the actual path in controllers.
Diffstat (limited to 'tpl/default/picwall.html')
-rw-r--r--tpl/default/picwall.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/default/picwall.html b/tpl/default/picwall.html
index 5343abd6..1e97b366 100644
--- a/tpl/default/picwall.html
+++ b/tpl/default/picwall.html
@@ -9,7 +9,7 @@
9{if="count($linksToDisplay)===0 && $is_logged_in"} 9{if="count($linksToDisplay)===0 && $is_logged_in"}
10 <div class="pure-g pure-alert pure-alert-warning page-single-alert"> 10 <div class="pure-g pure-alert pure-alert-warning page-single-alert">
11 <div class="pure-u-1 center"> 11 <div class="pure-u-1 center">
12 {'There is no cached thumbnail. Try to <a href="./?do=thumbs_update">synchronize them</a>.'|t} 12 {'There is no cached thumbnail. Try to <a href="{$base_path}/do=thumbs_update">synchronize them</a>.'|t}
13 </div> 13 </div>
14 </div> 14 </div>
15{/if} 15{/if}
@@ -52,7 +52,7 @@
52</div> 52</div>
53 53
54{include="page.footer"} 54{include="page.footer"}
55<script src="js/thumbnails.min.js?v={$version_hash}"></script> 55<script src="{$asset_path}/js/thumbnails.min.js?v={$version_hash}#"></script>
56</body> 56</body>
57</html> 57</html>
58 58