Skip to content

Node.js based forum software built for the modern web

fixes #4584

Julian Lam2e2c8b8e7789
diff --git a/src/middleware/admin.js b/src/middleware/admin.js
index ceeabdca99..2ee0f7fd80 100644
--- a/src/middleware/admin.js
+++ b/src/middleware/admin.js
@@ -112,7 +112,8 @@ middleware.renderHeader = function(req, res, data, next) {
scripts: results.scripts,
'cache-buster': meta.config['cache-buster'] ? 'v=' + meta.config['cache-buster'] : '',
env: process.env.NODE_ENV ? true : false,
- title: (acpPath || 'Dashboard') + ' | NodeBB Admin Control Panel'
+ title: (acpPath || 'Dashboard') + ' | NodeBB Admin Control Panel',
+ bodyClass: data.bodyClass
};
templateValues.template = {name: res.locals.template};
diff --git a/src/views/admin/header.tpl b/src/views/admin/header.tpl
index 476ebda7a6..1160e135bf 100644
--- a/src/views/admin/header.tpl
+++ b/src/views/admin/header.tpl
@@ -60,6 +60,6 @@
<!-- END scripts -->
</head>
- <body class="admin">
+ <body class="admin {bodyClass}">
<!-- IMPORT admin/partials/menu.tpl -->
<div class="container" id="content">
\ No newline at end of file