From 2bdc12b0a019ee67839bcfe82e7995f2c7c17d34 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 21 Feb 2019 18:27:28 +0100 Subject: [PATCH] Let's keep it simple ... have a folder asserts/{theme}/ containing a stylesheet.css and global.js --- helpers.lua | 2 +- portal/footer.ms | 3 +++ portal/header.ms | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/helpers.lua b/helpers.lua index cfaeea1..ba1f086 100644 --- a/helpers.lua +++ b/helpers.lua @@ -586,7 +586,7 @@ function get_data_for(view) data['flash_fail'] = {flashs["fail"]} data['flash_win'] = {flashs["win"] } data['flash_info'] = {flashs["info"]} - data['theme_name'] = ""..conf["theme"] + data['theme'] = conf["theme"] return data end diff --git a/portal/footer.ms b/portal/footer.ms index cec80c9..1472f36 100644 --- a/portal/footer.ms +++ b/portal/footer.ms @@ -11,5 +11,8 @@ + {{#theme}} + + {{/theme}} diff --git a/portal/header.ms b/portal/header.ms index 6024ae2..1041f91 100644 --- a/portal/header.ms +++ b/portal/header.ms @@ -13,7 +13,7 @@ - +