]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3242 Add pointer cursor on image
authorFabrice Bellingard <bellingard@gmail.com>
Mon, 6 Feb 2012 15:49:54 +0000 (16:49 +0100)
committerFabrice Bellingard <bellingard@gmail.com>
Mon, 6 Feb 2012 15:50:31 +0000 (16:50 +0100)
+ improve some code

sonar-server/src/main/webapp/WEB-INF/app/views/project_reviews/_assign_form.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/resource/_create_violation_form.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/resource/_violation.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_violation_assign_form.html.erb
sonar-server/src/main/webapp/stylesheets/style.css

index 0c61e721d68cab7b0040610674d6b8b1f07eee91..efeca053752a1f565d298156f4917cfd3bb4f2b1 100644 (file)
@@ -24,7 +24,7 @@
                        :update => "review",
                        :before => assignee_check_script -%>
   &nbsp;
-  <img src="<%= ApplicationController.root_context -%>/images/sep12.png">
+  <%= image_tag 'sep12.png' -%>
   &nbsp;
   <%= button_to_remote message('reviews.assign_to_me_submit'),
                        {
index 9c9c5ea911f6b20f1aed4f44abb8da45cd9375f8..1e6da007a2ccd85ea325dcaa90bb32414c7c421b 100644 (file)
@@ -27,7 +27,7 @@
                 <% end %>
               </select>
               &nbsp;
-              <img src="<%= ApplicationController.root_context -%>/images/sep12.png">
+              <%= image_tag 'sep12.png' -%>
               &nbsp;
               <select id="select-rule-<%= @html_id -%>" name="rule" onkeyup="this.blur();this.focus();" onchange="if ($F(this)=='') {$('new_rule_<%= @html_id -%>').show()} else {$('new_rule_<%= @html_id -%>').hide()}">
                 <% is_admin = current_user && has_role?(:admin)
@@ -49,7 +49,7 @@
               <% end %>
 
               &nbsp;
-              <img src="<%= ApplicationController.root_context -%>/images/sep12.png">
+              <%= image_tag 'sep12.png' -%>
               &nbsp;
               Assign to: <%= user_autocomplete_field "assignee_login", current_user.login -%>
             </div>
index afd11c3d8ce261d2b430a027543e89f3b11fa100..a45f05d58f2be9926710e77284f3b2e8ecdfaad9 100644 (file)
         <img src="<%= ApplicationController.root_context -%>/images/priority/<%= violation.failure_level -%>.png">
       <% end %>
       &nbsp;
-      <img src="<%= ApplicationController.root_context -%>/images/sep12.png">
+      <%= image_tag 'sep12.png' -%>
       &nbsp;
       <span class="rulename">
         <a onclick="window.open(this.href,'rule','height=800,width=900,scrollbars=1,resizable=1');return false;" href="<%= url_for :controller => 'rules', :action => 'show', :id => violation.rule.key, :layout => 'false' -%>"><%= h(violation.rule.name) -%></a>
       </span>
       &nbsp;
-      <img src="<%= ApplicationController.root_context -%>/images/sep12.png">
+      <%= image_tag 'sep12.png' -%>
       &nbsp;
 
       <% if violation.created_at %>
         &nbsp;
       <% end %>
       <% if violation.switched_off? %>
-        <img src="<%= ApplicationController.root_context -%>/images/sep12.png">
+        <%= image_tag 'sep12.png' -%>
         &nbsp;
         <span class="falsePositive"><%= message('false_positive') -%></span>
         &nbsp;
       <% end %>
       <% if violation.review && violation.review.resolved? %>
-        <img src="<%= ApplicationController.root_context -%>/images/sep12.png">
+        <%= image_tag 'sep12.png' -%>
         &nbsp;
         <span class="reviewResolved"><%= message('reviews.status.RESOLVED') -%></span>
         &nbsp;
       <% end %>
       <% if violation.review && violation.review.assignee_id %>
-        <img src="<%= ApplicationController.root_context -%>/images/sep12.png">
+        <%= image_tag 'sep12.png' -%>
         &nbsp;
         <%= message('assigned_to') -%> <%= h(violation.review.assignee.name) -%>
         &nbsp;
       <% end %>
       <% if violation.review && violation.review.planned? %>
-        <img src="<%= ApplicationController.root_context -%>/images/sep12.png">
+        <%= image_tag 'sep12.png' -%>
         &nbsp;
         <%= message('reviews.planned_for_x', :params => h(violation.review.action_plan.name)) -%>
         &nbsp;
@@ -57,7 +57,7 @@
       <div id="vMsg<%= violation.id -%>">
         
         <% if current_user %>
-          <img src="<%= ApplicationController.root_context -%>/images/actions.png" onclick="$('vActions<%= violation.id -%>').toggle();">
+          <img src="<%= ApplicationController.root_context -%>/images/actions.png" onclick="$('vActions<%= violation.id -%>').toggle();" class="pop-menu-icon">
           <div style="display: none" class="popup-menu" id="vActions<%= violation.id -%>" onmouseout="this.hide();"  onmouseover="this.show();">
               <ul>
                 <li><%= link_to_function message('reviews.comment'), "sCF(#{violation.id})", :name => 'bComment' -%></li>
             <% if is_last_comment && current_user %>
       <span class="actions" id="commentActions<%= violation.id -%>">
         &nbsp;&nbsp;
-        <img src="<%= ApplicationController.root_context -%>/images/sep12.png">
+        <%= image_tag 'sep12.png' -%>
         &nbsp;
         <%
            if current_user.id == review_comment.user_id
index de7f925f6baa5f16661624f35db373e989785b9a..60fcd8ffce6ca6df45a74a46c55081033036a284 100644 (file)
@@ -25,7 +25,7 @@
                        :update => "vId" + params[:id],
                        :before => assignee_check_script -%>
   &nbsp;
-  <img src="<%= ApplicationController.root_context -%>/images/sep12.png">
+  <%= image_tag 'sep12.png' -%>
   &nbsp;
   <%= button_to_remote message('reviews.assign_to_me_submit'),
                        {
index 9aad013c58e35755493cbf3c1929020e24f0e214..8070830abcf162a10ef78a969bd1230177f9c216 100644 (file)
@@ -419,6 +419,10 @@ button[disabled], .button[disabled], input[type="submit"][disabled], input[type=
   cursor: default;
 }
 
+.pop-menu-icon {
+  cursor: pointer;
+}
+
 .popup-menu {
   background-clip: padding-box;
   background-color: #FFFFFF;