From: Godin Date: Wed, 27 Oct 2010 14:19:51 +0000 (+0000) Subject: SONAR-1563: Display installed plugins X-Git-Tag: 2.6~751 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4321c5607b08c56e6b20543f00744aa53b1dc116;p=sonarqube.git SONAR-1563: Display installed plugins SONAR-1889: Display new available plugins --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/_common.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/_common.html.erb new file mode 100644 index 00000000000..c6784e025dc --- /dev/null +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/_common.html.erb @@ -0,0 +1,10 @@ + diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/_downloads.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/_downloads.html.erb index 8f9d1e8a836..ee23bea2b3c 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/_downloads.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/_downloads.html.erb @@ -1,9 +1,6 @@ +<%= render :partial => 'updatecenter/common' %> + - -<% if @downloads.size>0 %> -
+<% if @downloads.size > 0 %> +

Sonar needs to be restarted in order to install the following plugins:

-<% end %> \ No newline at end of file +<% end %> diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/_status.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/_status.html.erb index 01179af82e8..a6defc2d88b 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/_status.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/_status.html.erb @@ -4,4 +4,4 @@ <% else %> Updated on <%= @center.getDate() %>. <%= link_to 'Refresh', :action => action, :reload => true %> <% 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 f7cafd53e42..fcdfa93b3d6 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 @@ -13,77 +13,77 @@ <%= render :partial => 'updatecenter/downloads' %> + + + + <% if @center %> <% @updates_by_category.keys.sort_by{|c| c.downcase }.each do |category| updates=@updates_by_category[category] %> -
- - - - - - - <% updates.each do |update| - plugin=update.getPlugin() - %> - - - + + + <% updates.sort_by{|c| c.getPlugin().getName()}.each do |update| + plugin=update.getPlugin() + %> + + + - - <% end %> - -

<%= category -%>

- <%= h(plugin.getName()) -%> - - <%= plugin.getDescription() %> More -

<%= category -%>

+ <%= h(plugin.getName()) -%> + + <%= plugin.getDescription() %> +

+ <% elsif update.requiresSonarUpgrade + %> +

+ Version: <%= update.getRelease().getVersion() -%> (not compatible, needs Sonar upgrade) +

+ <% + end + %> + + + + <% end %> <% end %> <% end %> + +
+ <%= render :partial => 'updatecenter/status', :locals => {:action => 'available' } %> - \ No newline at end of file + diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/index.html.erb index 1363d9060ee..79c813a2e52 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/index.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/index.html.erb @@ -1,19 +1,3 @@ - -