mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
feat: add loggedin/guest class to body
This commit is contained in:
@@ -53,5 +53,11 @@ helpers.buildBodyClass = function (req, res, templateData = {}) {
|
||||
}
|
||||
|
||||
parts.push(`page-status-${res.statusCode}`);
|
||||
|
||||
if (req.loggedIn) {
|
||||
parts.push('user-loggedin');
|
||||
} else {
|
||||
parts.push('user-guest');
|
||||
}
|
||||
return parts.join(' ');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user