From c86a2c24bda8bf1dca57723c5eb52bb82dc09c21 Mon Sep 17 00:00:00 2001
From: Stas Vilchik
Date: Thu, 12 Mar 2015 17:23:16 +0100
Subject: fix ui issues with warnings
---
.../WEB-INF/app/views/dashboard/empty.html.erb | 9 +++--
.../WEB-INF/app/views/dashboard2/empty.html.erb | 8 +++--
.../WEB-INF/app/views/measures/_display.html.erb | 2 +-
.../app/views/project/_delete_form.html.erb | 5 +--
.../WEB-INF/app/views/project/deletion.html.erb | 8 ++---
.../WEB-INF/app/views/project/history.html.erb | 2 +-
.../webapp/WEB-INF/app/views/setup/dbdown.html.erb | 11 +++---
.../app/views/updatecenter/_operations.html.erb | 39 +++++++++++-----------
8 files changed, 41 insertions(+), 43 deletions(-)
(limited to 'server/sonar-web')
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/dashboard/empty.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/dashboard/empty.html.erb
index a297b76e3f3..0ba745395cf 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/dashboard/empty.html.erb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/dashboard/empty.html.erb
@@ -1,3 +1,6 @@
-<% if @resource and !@snapshot %>
-<%= message('provisioning.no_analysis') -%>
-<% end %>
+
+ <% if @resource and !@snapshot %>
+
<%= message('provisioning.no_analysis') -%>
+ <% end %>
+
+
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/dashboard2/empty.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/dashboard2/empty.html.erb
index a297b76e3f3..7a4ace5fc08 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/dashboard2/empty.html.erb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/dashboard2/empty.html.erb
@@ -1,3 +1,5 @@
-<% if @resource and !@snapshot %>
-<%= message('provisioning.no_analysis') -%>
-<% end %>
+
+ <% if @resource and !@snapshot %>
+
<%= message('provisioning.no_analysis') -%>
+ <% end %>
+
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/measures/_display.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/measures/_display.html.erb
index e919a90a90e..22f30d97b77 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/measures/_display.html.erb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/measures/_display.html.erb
@@ -1,6 +1,6 @@
<% if !filter.errors.empty? %>
<% filter.errors.full_messages.each do |message| %>
- <%= h message %>
+ <%= h message %>
<% end %>
<% elsif filter.rows && filter.display %>
<%= render :partial => 'measures/display_list', :locals => {:filter => filter, :edit_mode => edit_mode, :widget_id => widget_id} -%>
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/project/_delete_form.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/project/_delete_form.html.erb
index 6bde15752dc..79c73cd6f82 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/project/_delete_form.html.erb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/project/_delete_form.html.erb
@@ -5,10 +5,7 @@
<%= message('project_deletion.page', :params => resource_qualifier) -%>
-
-

- <%= message('project_deletion.delete_resource_confirmation', :params => resource_qualifier) %>
-
+ <%= message('project_deletion.delete_resource_confirmation', :params => resource_qualifier) %>
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/project/history.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/project/history.html.erb
index 4863996035f..aa90c0c4436 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/project/history.html.erb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/project/history.html.erb
@@ -6,7 +6,7 @@
<% if !@snapshot %>
- <%= message('provisioning.no_analysis') -%>
+ <%= message('provisioning.no_analysis') -%>
<% elsif @snapshot.root? %>
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/setup/dbdown.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/setup/dbdown.html.erb
index c98fee7d30b..29aa2c67f1b 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/setup/dbdown.html.erb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/setup/dbdown.html.erb
@@ -1,9 +1,6 @@
-
- <%= image_tag 'warning.png' -%>
-
Fail to connect to database
-
-
- Database connection cannot be established. Please check database status and JDBC settings.
+
+
Fail to connect to database
+
Database connection cannot be established. Please check database status and JDBC settings.
<%= button_to "Try again", { :action => "index" }, :method => :get %>
-
\ No newline at end of file
+
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/updatecenter/_operations.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/updatecenter/_operations.html.erb
index 4e3bb5de928..fe786c620ef 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/updatecenter/_operations.html.erb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/updatecenter/_operations.html.erb
@@ -1,5 +1,5 @@
<% if @uninstalls.size > 0 %>
-
-
+
<% end %>
<% if @downloads.size > 0 %>
-
+
<% end %>
--
cgit v1.2.3