From e01ae26251e2fd636347ed3a89d75e690798a56a Mon Sep 17 00:00:00 2001 From: uu59 Date: Mon, 26 May 2014 16:58:52 +0900 Subject: [PATCH] Don't fetch latest version number on recommended plugins to reduce response time --- app/views/plugins/recommended.html.haml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/views/plugins/recommended.html.haml b/app/views/plugins/recommended.html.haml index 99fe1d0..0773933 100644 --- a/app/views/plugins/recommended.html.haml +++ b/app/views/plugins/recommended.html.haml @@ -8,7 +8,6 @@ %th= t('.name') %th= t('.status') %th{width: "100"}= t('.installed_version') - %th{width: "100"}= t('.latest_version') %tbody - @plugins.each do |plugin| %tr @@ -20,15 +19,10 @@ = plugin.gem_name %td - if plugin.installed? - - if plugin.latest_version? - = t(".installed") - - else - = t(".new_version", version: plugin.latest_version) + = t(".installed") - else = t(".not_installed") %td = plugin.installed_version - %td - = plugin.latest_version = submit_tag t(".install"), class: "btn btn-primary"