moved portions of the ACP/Plugins page to a pair of partials, and split up the list so the plugins list isn't parsed twice.

This commit is contained in:
Julian Lam
2015-07-08 16:05:12 -04:00
parent b69ea4564a
commit 02a63c0a45
4 changed files with 70 additions and 67 deletions

View File

@@ -275,7 +275,12 @@ adminController.plugins.get = function(req, res, next) {
}
res.render('admin/extend/plugins' , {
plugins: plugins
installed: plugins.filter(function(plugin) {
return plugin.installed;
}),
download: plugins.filter(function(plugin) {
return !plugin.installed;
})
});
});
};