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 @@
Installed Plugins
@@ -56,28 +15,9 @@
Download Plugins
diff --git a/src/views/admin/partials/download_plugin_item.tpl b/src/views/admin/partials/download_plugin_item.tpl new file mode 100644 index 0000000000..1080c700b5 --- /dev/null +++ b/src/views/admin/partials/download_plugin_item.tpl @@ -0,0 +1,18 @@ +
  • +
    + + +
    + +

    {download.name}

    + + +

    {download.description}

    + + + Latest {download.latest} + + +

    For more information: {download.url}

    + +
  • diff --git a/src/views/admin/partials/installed_plugin_item.tpl b/src/views/admin/partials/installed_plugin_item.tpl new file mode 100644 index 0000000000..565b205f03 --- /dev/null +++ b/src/views/admin/partials/installed_plugin_item.tpl @@ -0,0 +1,40 @@ + +
  • +
    + + Themes + + + + + +
    + +

    {installed.name}

    + + +

    {installed.description}

    + + Installed {installed.version} | Latest {installed.latest} + + + + +

    For more information: {installed.url}

    + +
  • + + +
  • +
    + + + +
    + +

    {installed.id}

    +

    + The state of this plugin could not be determined, possibly due to a misconfiguration error. +

    +
  • +