Merge branch 'master' of github.com:andris9/mailtrain

This commit is contained in:
Andris Reinman 2017-03-10 14:15:29 +02:00
commit 55d23145a8
3 changed files with 17 additions and 0 deletions

3
app.js
View file

@ -183,6 +183,9 @@ app.use((req, res, next) => {
res.locals.menu = menu;
tools.updateMenu(res);
res.locals.customStyles = config.customstyles || [];
res.locals.customScripts = config.customscripts || [];
settingsModel.list(['ua_code', 'shoutout'], (err, configItems) => {
if (err) {
return next(err);

View file

@ -32,6 +32,12 @@ editors=[
# Default language to use
language="en"
# Inject custom styles in layout.hbs
# customstyles=["/custom/hello-world.css"]
# Inject custom scripts in layout.hbs
# customscripts=["/custom/hello-world.js"]
# If you start out as a root user (eg. if you want to use ports lower than 1000)
# then you can downgrade the user once all services are up and running
#user="nobody"

View file

@ -25,6 +25,14 @@
<link rel="stylesheet" href="/summernote/summernote.css">
{{/if}}
{{#each customStyles}}
<link rel="stylesheet" href="{{this}}">
{{/each}}
{{#each customScripts}}
<script src="{{this}}"></script>
{{/each}}
</head>
<body>