]> source.dussan.org Git - sonarqube.git/commitdiff
Improve treemap tooltips
authorSimon Brandhof <simon.brandhof@gmail.com>
Sun, 19 Feb 2012 20:36:47 +0000 (21:36 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Sun, 19 Feb 2012 20:36:47 +0000 (21:36 +0100)
sonar-server/src/main/webapp/WEB-INF/app/models/sonar/treemap.rb
sonar-server/src/main/webapp/WEB-INF/app/views/treemap/_treemap_container.html.erb

index 8663110306169b4f8999a2374980c54f4d1e36ff..1a084c213787ec6e58afe03f0eac0e07e007de28 100644 (file)
@@ -150,10 +150,9 @@ class Sonar::HtmlOutput < Treemap::HtmlOutput
     html += "overflow:hidden;position:absolute;"
     html += "left:#{node.bounds.x1}px; top:#{node.bounds.y1}px;"
     html += "width:#{node.bounds.width}px;height: #{node.bounds.height}px;"
-    html += "background-color:#FFF;"
-    html += "\" alt='#{node.tooltip}' title='#{node.tooltip}'>"
+    html += "background-color:#FFF;\">"
     html += "<div rid='#{node.rid}' id=\"tm-node-#{node.id}\" style='margin: 1px;background-color: #{node.color}; height: #{node.bounds.height-4}px;
-border: 1px solid #{node.color};' "
+border: 1px solid #{node.color};' alt=\"#{node.tooltip}\" title=\"#{node.tooltip}\""
     if node.browsable
       html += "b=1 "
     end
index e597cc48e08f225ec7cec6c656526e0a6d8db7ac..e8381ed712a824e94ddb0ab4be6ffe3d5f2b5855 100644 (file)
@@ -24,7 +24,7 @@
 <div id="tm-<%= treemap_id -%>" class="spacer-bottom"></div>
 
 <div style="margin: 5px 0 0 0" class="notes">
-  <div style="float: right"><%= image_tag 'help_gray.gif', :title => h(message('treemap.click_help')) -%></div>
+  <div style="float: right;cursor: help"><%= image_tag 'help_gray.gif', :title => h(message('treemap.click_help')) -%></div>
   <div id="tm-bc-<%= treemap_id -%>">/</div>
 </div>