From: Stas Vilchik Date: Thu, 12 Mar 2015 16:23:16 +0000 (+0100) Subject: fix ui issues with warnings X-Git-Tag: 5.2-RC1~2592 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c86a2c24bda8bf1dca57723c5eb52bb82dc09c21;p=sonarqube.git fix ui issues with warnings --- 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) -%>

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 %> -
-

SonarQube needs to be restarted in order to uninstall the following plugins:

- -

-
+
+

SonarQube needs to be restarted in order to uninstall the following plugins:

+ + +
<% end %> <% if @downloads.size > 0 %> -
-

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

- -

-
+
+

SonarQube needs to be restarted in order to install the following plugins: +

+ +

+
<% end %>