diff --git a/src/controllers/admin.js b/src/controllers/admin.js index 6ad32991eb..934881a6bd 100644 --- a/src/controllers/admin.js +++ b/src/controllers/admin.js @@ -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; + }) }); }); }; diff --git a/src/views/admin/extend/plugins.tpl b/src/views/admin/extend/plugins.tpl index 252a56c7a4..7cc70b229f 100644 --- a/src/views/admin/extend/plugins.tpl +++ b/src/views/admin/extend/plugins.tpl @@ -4,50 +4,9 @@
{plugins.description}
- - Installed {plugins.version} | Latest {plugins.latest} - - - - -For more information: {plugins.url}
- -- The state of this plugin could not be determined, possibly due to a misconfiguration error. -
-{plugins.description}
- - - Latest {plugins.latest} - - -For more information: {plugins.url}
- -{download.description}
+ + + Latest {download.latest} + + +For more information: {download.url}
+ +{installed.description}
+ + Installed {installed.version} | Latest {installed.latest} + + + + +For more information: {installed.url}
+ ++ The state of this plugin could not be determined, possibly due to a misconfiguration error. +
+