diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-06-13 11:22:14 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-07-23 21:19:21 +0200 |
commit | 818b3193ffabec57501e3bdfa997206e3c0671ef (patch) | |
tree | f5a4d3cc23ac367dde617b849561177fc20d767a /tpl/vintage/linklist.paging.html | |
parent | c22fa57a5505fe95fd01860e3d3dfbb089f869cd (diff) | |
download | Shaarli-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/vintage/linklist.paging.html')
-rw-r--r-- | tpl/vintage/linklist.paging.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tpl/vintage/linklist.paging.html b/tpl/vintage/linklist.paging.html index 797104dc..ea6a5ea2 100644 --- a/tpl/vintage/linklist.paging.html +++ b/tpl/vintage/linklist.paging.html | |||
@@ -1,11 +1,11 @@ | |||
1 | <div class="paging"> | 1 | <div class="paging"> |
2 | {if="$is_logged_in"} | 2 | {if="$is_logged_in"} |
3 | <div class="paging_privatelinks"> | 3 | <div class="paging_privatelinks"> |
4 | <a href="./visibility/private"> | 4 | <a href="{$base_path}/visibility/private"> |
5 | {if="$visibility=='private'"} | 5 | {if="$visibility=='private'"} |
6 | <img src="img/private_16x16_active.png" width="16" height="16" title="Click to see all links" alt="Click to see all links"> | 6 | <img src="{$asset_path}/img/private_16x16_active.png#" width="16" height="16" title="Click to see all links" alt="Click to see all links"> |
7 | {else} | 7 | {else} |
8 | <img src="img/private_16x16.png" width="16" height="16" title="Click to see only private links" alt="Click to see only private links"> | 8 | <img src="{$asset_path}/img/private_16x16.png#" width="16" height="16" title="Click to see only private links" alt="Click to see only private links"> |
9 | {/if} | 9 | {/if} |
10 | </a> | 10 | </a> |
11 | 11 | ||
@@ -24,10 +24,10 @@ | |||
24 | {/loop} | 24 | {/loop} |
25 | <div class="paging_linksperpage"> | 25 | <div class="paging_linksperpage"> |
26 | Links per page: | 26 | Links per page: |
27 | <a href="./links-per-page?nb=20">20</a> | 27 | <a href="{$base_path}/links-per-page?nb=20">20</a> |
28 | <a href="./links-per-page?nb=50">50</a> | 28 | <a href="{$base_path}/links-per-page?nb=50">50</a> |
29 | <a href="./links-per-page?nb=100">100</a> | 29 | <a href="{$base_path}/links-per-page?nb=100">100</a> |
30 | <form method="GET" class="linksperpage" action="./links-per-page"> | 30 | <form method="GET" class="linksperpage" action="{$base_path}/links-per-page"> |
31 | <input type="text" name="nb" size="2"> | 31 | <input type="text" name="nb" size="2"> |
32 | </form> | 32 | </form> |
33 | </div> | 33 | </div> |