mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
prettier admin navigation page
This commit is contained in:
@@ -8,6 +8,14 @@ navigationController.get = function(req, res, next) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
|
||||
data.enabled.forEach(function(enabled, index) {
|
||||
enabled.index = index;
|
||||
enabled.selected = index === 0;
|
||||
});
|
||||
|
||||
data.navigation = data.enabled.slice();
|
||||
|
||||
res.render('admin/general/navigation', data);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user