From: Paulo Vital <pvital(a)linux.vnet.ibm.com>
Updated necessary SCSS, JS and HTML files to handle the usage of
relative paths.
This is part of solution to:
https://github.com/kimchi-project/kimchi/issues/733
and
https://github.com/kimchi-project/wok/issues/25
Signed-off-by: Paulo Vital <pvital(a)linux.vnet.ibm.com>
---
ui/css/src/modules/_wok-variables.scss | 6 +++---
ui/pages/tabs/settings.html.tmpl | 7 ++++---
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/ui/css/src/modules/_wok-variables.scss
b/ui/css/src/modules/_wok-variables.scss
index 61d4216..ceefe56 100644
--- a/ui/css/src/modules/_wok-variables.scss
+++ b/ui/css/src/modules/_wok-variables.scss
@@ -21,9 +21,9 @@ $bootstrap-sass-asset-helper: false !default;
// Variables
// --------------------------------------------------
-$wok-logo: '/images/wok-logo.png';
-$wok-icon-path: '/images/theme-default';
-$icon-font-path: '/css/fontawesome/fontawesome-webfont.ttf';
+$wok-logo: '../images/wok-logo.png';
+$wok-icon-path: '../images/theme-default';
+$icon-font-path: 'css/fontawesome/fontawesome-webfont.ttf';
//== Colors
//
diff --git a/ui/pages/tabs/settings.html.tmpl b/ui/pages/tabs/settings.html.tmpl
index 8701885..7bb03d4 100644
--- a/ui/pages/tabs/settings.html.tmpl
+++ b/ui/pages/tabs/settings.html.tmpl
@@ -18,15 +18,16 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA
-->
#unicode UTF-8
#import gettext
+#from wok.cachebust import href
#silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang)
#silent _ = t.gettext
#silent _t = t.gettext
<html>
<head>
- <link rel="stylesheet" type="text/css"
href="../../css/settings.css">
- <script type="text/javascript"
src="../../js/wok.user-log.js"></script>
- <script type="text/javascript"
src="../../js/wok.bootgrid.js"></script>
+ <link rel="stylesheet" type="text/css"
href="$href('css/settings.css')">
+ <script type="text/javascript"
src="$href('js/wok.user-log.js')"></script>
+ <script type="text/javascript"
src="$href('js/wok.bootgrid.js')"></script>
</head>
<body>
--
2.7.4