mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Let's keep it simple ... have a folder asserts/{theme}/ containing a stylesheet.css and global.js
This commit is contained in:
parent
a84fbb55c8
commit
2bdc12b0a0
3 changed files with 5 additions and 2 deletions
|
@ -586,7 +586,7 @@ function get_data_for(view)
|
||||||
data['flash_fail'] = {flashs["fail"]}
|
data['flash_fail'] = {flashs["fail"]}
|
||||||
data['flash_win'] = {flashs["win"] }
|
data['flash_win'] = {flashs["win"] }
|
||||||
data['flash_info'] = {flashs["info"]}
|
data['flash_info'] = {flashs["info"]}
|
||||||
data['theme_name'] = ""..conf["theme"]
|
data['theme'] = conf["theme"]
|
||||||
|
|
||||||
return data
|
return data
|
||||||
end
|
end
|
||||||
|
|
|
@ -11,5 +11,8 @@
|
||||||
|
|
||||||
<!-- Scripts -->
|
<!-- Scripts -->
|
||||||
<script src="assets/js/global.js"></script>
|
<script src="assets/js/global.js"></script>
|
||||||
|
{{#theme}}
|
||||||
|
<script src="assets/themes/{{theme}}/global.js"></script>
|
||||||
|
{{/theme}}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
<!-- Stylesheets -->
|
<!-- Stylesheets -->
|
||||||
<link rel="stylesheet" href="assets/css/ynh-style.css">
|
<link rel="stylesheet" href="assets/css/ynh-style.css">
|
||||||
<link rel="stylesheet" href="assets/themes/{{theme_name}}.css">
|
<link rel="stylesheet" href="assets/themes/{{theme}}/stylesheet.css">
|
||||||
|
|
||||||
<!-- Icons -->
|
<!-- Icons -->
|
||||||
<link rel="shortcut icon" href="assets/icons/favicon.ico">
|
<link rel="shortcut icon" href="assets/icons/favicon.ico">
|
||||||
|
|
Loading…
Add table
Reference in a new issue