]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3086 improve usability of review forms
authorSimon Brandhof <simon.brandhof@gmail.com>
Thu, 22 Dec 2011 17:29:43 +0000 (18:29 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Thu, 22 Dec 2011 17:29:43 +0000 (18:29 +0100)
sonar-server/src/main/webapp/WEB-INF/app/views/project_reviews/_review.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/resource/_violation.html.erb
sonar-server/src/main/webapp/javascripts/resource.js
sonar-server/src/main/webapp/stylesheets/style.css

index dfae7b2a1eebb6b86c042e162c5bfb70b26f8920..66832ee83ddd88645cd0490b762b69edb828223d 100644 (file)
@@ -59,9 +59,9 @@
         <%= message('status') -%>:
       </td>
       <td class="val">
-        <%= image_tag "status/#{review.status}.png" -%> <%= message("reviews.status.#{review.status}") -%>
+        <%= image_tag "status/#{review.status}.png" -%> <span class="reviewStatus<%= @review.status -%>"><%= message("reviews.status.#{review.status}") -%></span>
         <% if @review.resolution.present? %>
-          <span class="reviewResolution<%= @review.resolution -%>">(<%= message("reviews.resolution.#{@review.resolution}") -%>)</span>
+          (<span class="reviewResolution<%= @review.resolution -%>"><%= message("reviews.resolution.#{@review.resolution}") -%></span>)
         <% end %>
       </td>
       <td class="key">
index 5eb274529cd94f218745931f3225b49c5adfd506..b58a030aa0dcc5e4910dc5fdf27846ec0aba7607 100644 (file)
 
       <img src="<%= ApplicationController.root_context -%>/images/priority/<%= violation.failure_level -%>.png">
       &nbsp;
-      <% if violation.review && violation.review.manual_severity && violation.review.severity!=violation.severity %>
-        <img src="<%= ApplicationController.root_context -%>/images/priority/<%= violation.review.severity -%>.png">
-        &nbsp;
-      <% end %>
-
       <img src="<%= ApplicationController.root_context -%>/images/sep12.png">
       &nbsp;
       <span class="rulename">
         <span class="reviewResolved"><%= message('reviews.status.RESOLVED') -%></span>
         &nbsp;
       <% end %>
-      <% if violation.review && violation.review.reopened? %>
-        <img src="<%= ApplicationController.root_context -%>/images/sep12.png">
-        &nbsp;
-        <span class="reviewReopened"><%= message('reviews.status.REOPENED') -%></span>
-        &nbsp;
-      <% end %>
       <% if violation.review && violation.review.assignee_id %>
         <img src="<%= ApplicationController.root_context -%>/images/sep12.png">
         &nbsp;
index 11e8627b59f8815320694d87ca6b315ce0af9df3..88b6dffd7e20f635512bfa29d400d9ae6c103307 100644 (file)
@@ -22,11 +22,7 @@ function loadGWT(gwtId, resourceId, resourceKey, resourceName, resourceScope, re
 
 // show violation actions
 function sVA(violation_id) {
-  var elt = $('vMsg' + violation_id);
-  if (elt != null) {
-    elt.hide();
-  }
-  elt = $('vActions' + violation_id);
+  var elt = $('vActions' + violation_id);
   if (elt != null) {
     elt.show();
   }
@@ -35,11 +31,7 @@ function sVA(violation_id) {
 
 // hide violation actions
 function hVA(violation_id) {
-  var elt = $('vMsg' + violation_id);
-  if (elt != null) {
-    elt.show();
-  }
-  elt = $('vActions' + violation_id);
+  var elt = $('vActions' + violation_id);
   if (elt != null) {
     elt.hide();
   }
index e4e0dac9717626f72a90271dd375c4045c5c59d2..631cd09921f4d4febdc85a8548232ce3c2672dad 100644 (file)
@@ -856,6 +856,7 @@ ul.operations li img {
   background-color: #FFF;
   margin: 0;
   border: 1px solid #DDD;
+  font-size: 12px;
 }
 
 .sources2 div.violation .actions, #global_violations div.violation .actions {
@@ -913,7 +914,6 @@ span.rulename, span.rulename a {
 div.review_permalink {
   float: right;
   color: #333333;
-  font-size: 12px;
   font-weight: bold;
   margin: 0;
   padding: 0 10px;
@@ -921,16 +921,19 @@ div.review_permalink {
 }
 
 div.vActions {
+  position: absolute;
   line-height: 1.5em;
   height: 1.5em;
+  padding-right: 10px;
   max-height: 1.5em;
+  background-color: #F4F4F4;
+  box-shadow: 10px 10px 10px #EFEFEF;
 }
 
 span.review_permalink a {
   color: #777;
-  font-size: 90%;
+  font-size: 11px;
   padding: 0 0 0 20px;
-  background: url('../images/zoom.png') no-repeat left;
 }
 
 span.rulename a:hover {