Skip to content

Commit

Permalink
Fix UI to handle relative paths.
Browse files Browse the repository at this point in the history
Updated necessary SCSS, JS and HTML files to handle the usage of
relative paths.

This is part of solution to:
kimchi-project/kimchi#733
and
#25

Signed-off-by: Paulo Vital <pvital@linux.vnet.ibm.com>
  • Loading branch information
Paulo Vital authored and alinefm committed Oct 10, 2016
1 parent 78f218d commit f1453e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ui/css/src/modules/_wok-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
//
Expand Down
7 changes: 4 additions & 3 deletions ui/pages/tabs/settings.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit f1453e5

Please sign in to comment.