From 62346ef1b5ab79e61842f605db1d00224f4ab698 Mon Sep 17 00:00:00 2001 From: Godin Date: Wed, 27 Oct 2010 18:26:24 +0000 Subject: [PATCH] SONAR-1887: Display available plugin updates --- .../app/views/updatecenter/index.html.erb | 18 +++++----- .../app/views/updatecenter/updates.html.erb | 33 ++++++++++++++----- 2 files changed, 35 insertions(+), 16 deletions(-) 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 3ce11dbb104..b5d8ffab38d 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 @@ -14,9 +14,9 @@ <%= render :partial => 'updatecenter/operations' -%> -

User-installed plugins

- +
+ @@ -30,7 +30,7 @@ @user_plugins.each do |plugin| %> - +

User-installed plugins

Plugin Version
<%= h(plugin.name) -%><%= h(plugin.name) -%> <%= plugin.version || '-' -%> <%= plugin.description -%> @@ -58,12 +58,14 @@
-

System plugins

- - - - + + + + + + + <% @core_plugins.each do |plugin| diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/updates.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/updates.html.erb index 9cdc7ea0796..32deda6e50b 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/updates.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/updates.html.erb @@ -17,19 +17,19 @@
PluginDescription

System plugins

PluginDescription
- + <% if @plugin_updates.empty? %> - + <% end %> <% @plugin_updates.each do |update| %> - + - @@ -70,7 +82,12 @@ %> - +

User-installed plugins

User-installed plugins

No updatesNo updates
<%= h(update.getPlugin().getName()) -%><%= h(update.getPlugin().getName()) -%> <%= update.getRelease().getVersion() -%> <% if update.isIncompatible() %> @@ -37,12 +37,24 @@ <% elsif update.requiresSonarUpgrade %> not compatible, needs Sonar upgrade <% end %> - -
+ +
Sonar <%= sonar_release.getVersion() -%><%= sonar_release.getDescription() -%> + <%= sonar_release.getDescription() -%> + <% if update.getRelease().getDate() %> + Released <%= update.getRelease().getDate() -%>
+ <% end %> +
<%= link_to 'Release Notes', sonar_release.getChangelogUrl(), :class => 'external' if sonar_release.getChangelogUrl() %>   <%= link_to 'Download', sonar_release.getDownloadUrl(), :class => 'external' if sonar_release.getDownloadUrl() %> @@ -82,4 +99,4 @@
<% end %> <%= render :partial => 'updatecenter/status', :locals => {:action => 'updates' } %> - \ No newline at end of file + -- 2.39.5