]> source.dussan.org Git - sonarqube.git/commitdiff
fix ui issues with warnings
authorStas Vilchik <vilchiks@gmail.com>
Thu, 12 Mar 2015 16:23:16 +0000 (17:23 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 12 Mar 2015 16:23:16 +0000 (17:23 +0100)
server/sonar-web/src/main/webapp/WEB-INF/app/views/dashboard/empty.html.erb
server/sonar-web/src/main/webapp/WEB-INF/app/views/dashboard2/empty.html.erb
server/sonar-web/src/main/webapp/WEB-INF/app/views/measures/_display.html.erb
server/sonar-web/src/main/webapp/WEB-INF/app/views/project/_delete_form.html.erb
server/sonar-web/src/main/webapp/WEB-INF/app/views/project/deletion.html.erb
server/sonar-web/src/main/webapp/WEB-INF/app/views/project/history.html.erb
server/sonar-web/src/main/webapp/WEB-INF/app/views/setup/dbdown.html.erb
server/sonar-web/src/main/webapp/WEB-INF/app/views/updatecenter/_operations.html.erb

index a297b76e3f3611253b840fa370943dd1e5914b7d..0ba745395cf54c1d3e717bceb3bc66cfc8015050 100644 (file)
@@ -1,3 +1,6 @@
-<% if @resource and !@snapshot %>
-<p class="warning marginbottom10"><%= message('provisioning.no_analysis') -%></p>
-<% end %>
+<div class="page">
+  <% if @resource and !@snapshot %>
+    <p class="alert alert-warning"><%= message('provisioning.no_analysis') -%></p>
+  <% end %>
+</div>
+
index a297b76e3f3611253b840fa370943dd1e5914b7d..7a4ace5fc082cf1d5e25b540242bb63fed3e951f 100644 (file)
@@ -1,3 +1,5 @@
-<% if @resource and !@snapshot %>
-<p class="warning marginbottom10"><%= message('provisioning.no_analysis') -%></p>
-<% end %>
+<div class="page">
+  <% if @resource and !@snapshot %>
+    <p class="alert alert-warning"><%= message('provisioning.no_analysis') -%></p>
+  <% end %>
+</div>
index e919a90a90e96cbfaaaf72fb89c677ae0b9ddb2c..22f30d97b7703c1787af09c14f2cb2ea67dd8102 100644 (file)
@@ -1,6 +1,6 @@
 <% if !filter.errors.empty? %>
   <% filter.errors.full_messages.each do |message| %>
-    <div class="warning"><%= h message %></div>
+    <div class="alert alert-danger"><%= h message %></div>
   <% end %>
 <% elsif filter.rows && filter.display %>
   <%= render :partial => 'measures/display_list', :locals => {:filter => filter, :edit_mode => edit_mode, :widget_id => widget_id} -%>
index 6bde15752dc85e96f34440edfba6e046b3f3b4cd..79c73cd6f8255b464ac2d80e2f6d6f54ac69f27e 100644 (file)
@@ -5,10 +5,7 @@
       <h2><%= message('project_deletion.page', :params => resource_qualifier) -%></h2>
     </div>
     <div class="modal-body">
-      <div class="info">
-        <img src="<%= ApplicationController.root_context -%>/images/information.png" style="vertical-align: text-bottom"/>
-        <%= message('project_deletion.delete_resource_confirmation', :params => resource_qualifier) %>
-      </div>
+      <%= message('project_deletion.delete_resource_confirmation', :params => resource_qualifier) %>
     </div>
     <div class="modal-foot">
       <span id="delete-project-loading-image" class="loading-image hidden"><%= image_tag 'loading.gif' %></span>
index 64371eee0f2fd34251a18f3d8d45ec9d62a62523..73bdb62f6bef669f7b04c4b8fa3a2f6b945c0db3 100644 (file)
     </header>
 
     <div class="yui-g widget" id="widget_delete_project">
-      <div class="warning">
-        <%= message('project_deletion.operation_cannot_be_undone') -%><br/>
-        <a id="delete_resource" class="open-modal button button-red"
-           href="<%= ApplicationController.root_context -%>/project/delete_form/<%= h(@project.id) -%>"><%= delete_resource_message -%></a>
-      </div>
+      <div class="alert alert-warning spacer-bottom"><%= message('project_deletion.operation_cannot_be_undone') -%></div>
+      <a id="delete_resource" class="open-modal button button-red"
+         href="<%= ApplicationController.root_context -%>/project/delete_form/<%= h(@project.id) -%>"><%= delete_resource_message -%></a>
     </div>
   <% end %>
 </div>
index 4863996035f07715eef5a7729563e48f01e62ce1..aa90c0c443666e5688e9cd0006dcae698b37cb7b 100644 (file)
@@ -6,7 +6,7 @@
 
   <% if !@snapshot %>
 
-  <p class="warning"><%= message('provisioning.no_analysis') -%></p>
+  <p class="alert alert-warning"><%= message('provisioning.no_analysis') -%></p>
 
   <% elsif @snapshot.root? %>
 
index c98fee7d30bdb5ff519b5730e71709767f07b75a..29aa2c67f1b71b6de9ced26134172621d4d85cfd 100644 (file)
@@ -1,9 +1,6 @@
-<div class="warning migration" style="padding:10px">
-  <%= image_tag 'warning.png' -%>
-  <b>Fail to connect to database</b>
-  <br/>
-  <br/>
-  Database connection cannot be established. Please check database status and JDBC settings.
+<div class="alert alert-danger">
+  <h3 class="text-danger">Fail to connect to database</h3>
+  <p>Database connection cannot be established. Please check database status and JDBC settings.</p>
   <br/>
   <%= button_to "Try again", { :action => "index" }, :method => :get %>
-</div>
\ No newline at end of file
+</div>
index 4e3bb5de928992376aecc9e614a616d5435b8b2f..fe786c620ef3f177c033ff0bef2ed25260593491 100644 (file)
@@ -1,5 +1,5 @@
 <script type="text/javascript">
-  function showPlugin(key) {
+  function showPlugin (key) {
     if ($j('#detail-' + key).is(':visible')) {
       $j('#detail-' + key).hide();
     } else {
 </script>
 
 <% if @uninstalls.size > 0 %>
-<form action="<%= ApplicationController.root_context -%>/updatecenter/cancel_uninstalls" method="post" class="warning">
-<p>SonarQube needs to be restarted in order to uninstall the following plugins: <ul>
-  <% @uninstalls.each do |uninstall| %>
-    <li><%= uninstall -%></li>
-  <% end %>
-  </ul>
-  <input type="submit" value="Cancel uninstalls" id="cancel-uninstall"/>
-</p>
-</form>
+  <form action="<%= ApplicationController.root_context -%>/updatecenter/cancel_uninstalls" method="post" class="warning">
+    <p>SonarQube needs to be restarted in order to uninstall the following plugins:</p>
+    <ul class="list-styled spacer-top spacer-bottom">
+      <% @uninstalls.each do |uninstall| %>
+        <li><%= uninstall -%></li>
+      <% end %>
+    </ul>
+    <input type="submit" value="Cancel uninstalls" id="cancel-uninstall"/>
+  </form>
 <% end %>
 
 <% if @downloads.size > 0 %>
-<form action="<%= ApplicationController.root_context -%>/updatecenter/cancel_downloads" method="post" class="warning">
-<p>SonarQube needs to be restarted in order to install the following plugins: <ul>
-  <% @downloads.each do |download| %>
-    <li><%= download -%></li>
-  <% end %>
-  </ul>
-  <input type="submit" value="Cancel pending installations" id="cancel-pending-installations"/>
-</p>
-</form>
+  <form action="<%= ApplicationController.root_context -%>/updatecenter/cancel_downloads" method="post" class="warning">
+    <p>SonarQube needs to be restarted in order to install the following plugins:
+    <ul>
+      <% @downloads.each do |download| %>
+        <li><%= download -%></li>
+      <% end %>
+    </ul>
+    <input type="submit" value="Cancel pending installations" id="cancel-pending-installations"/>
+    </p>
+  </form>
 <% end %>