diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-12-16 23:46:04 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2018-12-16 23:46:04 +0200 |
commit | 7f74e72cea111f6a776a12e6447847056af53fea (patch) | |
tree | a0e8e5e2c0e7aead5fb6ee1b04c1986d92a32776 /client/components/main | |
parent | bd1df642fa2a3d5962ca1ceba8decd6516811361 (diff) | |
download | wekan-7f74e72cea111f6a776a12e6447847056af53fea.tar.gz wekan-7f74e72cea111f6a776a12e6447847056af53fea.tar.bz2 wekan-7f74e72cea111f6a776a12e6447847056af53fea.zip |
- Trying to get custom HTML working as described at
https://guide.meteor.com/v1.3/blaze.html#rendering-html
Still does not work yet.
Thanks to xet7 !
Diffstat (limited to 'client/components/main')
-rw-r--r-- | client/components/main/layouts.jade | 4 | ||||
-rw-r--r-- | client/components/main/layouts.js | 9 |
2 files changed, 11 insertions, 2 deletions
diff --git a/client/components/main/layouts.jade b/client/components/main/layouts.jade index b2c23920..55ee2686 100644 --- a/client/components/main/layouts.jade +++ b/client/components/main/layouts.jade @@ -38,9 +38,9 @@ template(name="userFormsLayout") template(name="defaultLayout") +header #content - | {{{currentSetting.customHTMLafterBodyStart}}} + | {{{afterBodyStart}}} +Template.dynamic(template=content) - | {{{currentSetting.customHTMLbeforeBodyEnd}}} + | {{{beforeBodyEnd}}} if (Modal.isOpen) #modal .overlay diff --git a/client/components/main/layouts.js b/client/components/main/layouts.js index d4a9d6d1..a50d167e 100644 --- a/client/components/main/layouts.js +++ b/client/components/main/layouts.js @@ -42,6 +42,15 @@ Template.userFormsLayout.helpers({ return Settings.findOne(); }, + + afterBodyStart() { + return currentSetting.customHTMLafterBodyStart; + }, + + beforeBodyEnd() { + return currentSetting.customHTMLbeforeBodyEnd; + }, + languages() { return _.map(TAPi18n.getLanguages(), (lang, code) => { const tag = code; |