Merge branch 'master' into access
Conflicts: config/default.toml
This commit is contained in:
commit
115d254baf
33 changed files with 2331 additions and 61 deletions
6
app.js
6
app.js
|
@ -184,6 +184,12 @@ app.use((req, res, next) => {
|
|||
res.locals.customStyles = config.customstyles || [];
|
||||
res.locals.customScripts = config.customscripts || [];
|
||||
|
||||
let bodyClasses = [];
|
||||
if (req.user) {
|
||||
bodyClasses.push('logged-in user-' + req.user.username);
|
||||
}
|
||||
res.locals.bodyClass = bodyClasses.join(' ');
|
||||
|
||||
settingsModel.list(['ua_code', 'shoutout'], (err, configItems) => {
|
||||
if (err) {
|
||||
return next(err);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue