aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-02-19 21:36:47 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2012-02-19 21:36:47 +0100
commit548d3ab217d6f862ff645a3e974dad516a693e1b (patch)
tree550f1678b6ed84a825b0b1e6edfddf1ade44b221 /sonar-server
parent64f77ae8735cc1584e9b5c393d97e20b2b0f2a5d (diff)
downloadsonarqube-548d3ab217d6f862ff645a3e974dad516a693e1b.tar.gz
sonarqube-548d3ab217d6f862ff645a3e974dad516a693e1b.zip
Improve treemap tooltips
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/models/sonar/treemap.rb5
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/treemap/_treemap_container.html.erb2
2 files changed, 3 insertions, 4 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/sonar/treemap.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/sonar/treemap.rb
index 86631103061..1a084c21378 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/models/sonar/treemap.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/models/sonar/treemap.rb
@@ -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
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/treemap/_treemap_container.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/treemap/_treemap_container.html.erb
index e597cc48e08..e8381ed712a 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/treemap/_treemap_container.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/treemap/_treemap_container.html.erb
@@ -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>