From 818b3193ffabec57501e3bdfa997206e3c0671ef Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 13 Jun 2020 11:22:14 +0200 Subject: 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. --- tpl/default/404.html | 2 +- tpl/default/addlink.html | 2 +- tpl/default/changepassword.html | 2 +- tpl/default/changetag.html | 4 ++-- tpl/default/configure.html | 6 +++--- tpl/default/daily.html | 10 +++++----- tpl/default/editlink.html | 4 ++-- tpl/default/error.html | 2 +- tpl/default/export.html | 2 +- tpl/default/import.html | 2 +- tpl/default/includes.html | 10 +++++----- tpl/default/install.html | 2 +- tpl/default/linklist.html | 18 +++++++++--------- tpl/default/linklist.paging.html | 14 +++++++------- tpl/default/page.footer.html | 5 +++-- tpl/default/page.header.html | 22 +++++++++++----------- tpl/default/picwall.html | 4 ++-- tpl/default/pluginsadmin.html | 6 +++--- tpl/default/tag.cloud.html | 6 +++--- tpl/default/tag.list.html | 8 ++++---- tpl/default/tag.sort.html | 6 +++--- tpl/default/thumbnails.html | 2 +- tpl/default/tools.html | 14 +++++++------- tpl/vintage/404.html | 2 +- tpl/vintage/addlink.html | 2 +- tpl/vintage/configure.html | 4 ++-- tpl/vintage/daily.html | 20 ++++++++++---------- tpl/vintage/editlink.html | 2 +- tpl/vintage/error.html | 2 +- tpl/vintage/import.html | 2 +- tpl/vintage/includes.html | 4 ++-- tpl/vintage/linklist.html | 16 ++++++++-------- tpl/vintage/linklist.paging.html | 14 +++++++------- tpl/vintage/page.footer.html | 2 +- tpl/vintage/page.header.html | 18 +++++++++--------- tpl/vintage/picwall.html | 2 +- tpl/vintage/pluginsadmin.html | 4 ++-- tpl/vintage/tag.cloud.html | 4 ++-- tpl/vintage/thumbnails.html | 3 ++- tpl/vintage/tools.html | 12 ++++++------ 40 files changed, 134 insertions(+), 132 deletions(-) (limited to 'tpl') diff --git a/tpl/default/404.html b/tpl/default/404.html index 09737b4b..7b696e4c 100644 --- a/tpl/default/404.html +++ b/tpl/default/404.html @@ -8,7 +8,7 @@ {include="page.header"}

{'Sorry, nothing to see here.'|t}

- +

{$error_message}

{include="page.footer"} diff --git a/tpl/default/addlink.html b/tpl/default/addlink.html index 999d2f4d..c37827f4 100644 --- a/tpl/default/addlink.html +++ b/tpl/default/addlink.html @@ -9,7 +9,7 @@