From dd8e6540a7e1cab420488489c326b5c5d02016d4 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Wed, 20 Feb 2013 17:22:31 +0100 Subject: Update to latest update center API --- .../app/controllers/updatecenter_controller.rb | 2 +- .../app/views/updatecenter/_children.html.erb | 12 ------------ .../app/views/updatecenter/available.html.erb | 19 ++++++++++++++++--- .../WEB-INF/app/views/updatecenter/index.html.erb | 20 +++++++++++++++++--- 4 files changed, 34 insertions(+), 19 deletions(-) delete mode 100644 sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/_children.html.erb diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/updatecenter_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/updatecenter_controller.rb index aa8098209a4..37c62052a35 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/updatecenter_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/updatecenter_controller.rb @@ -148,6 +148,6 @@ class UpdatecenterController < ApplicationController end def installed_plugins - @installed_plugin_referential.plugins + @installed_plugin_referential.lastMasterReleasePlugins end end diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/_children.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/_children.html.erb deleted file mode 100644 index 6b8cadcba13..00000000000 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/_children.html.erb +++ /dev/null @@ -1,12 +0,0 @@ -<% index = 0 %> -<% children.each do |child| %> - - <% if index == 0 %> - Includes: - <% else %> -   - <% end %> - <%= child.name -%> : <%= child.description -%> - - <% index = index + 1 %> -<% end %> \ No newline at end of file diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/available.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/available.html.erb index cd2a1abeb7c..000736a63d7 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/available.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/available.html.erb @@ -32,8 +32,7 @@ function installPlugin(key) { <% updates.sort_by{|update| update.plugin.key}.each do |update| - children = update.plugin.children - plugin = update.plugin + plugin = update.plugin %> @@ -43,7 +42,21 @@ function installPlugin(key) { <%= plugin.getDescription() %>