diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2012-03-29 13:57:38 +0200 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2012-03-29 13:57:38 +0200 |
commit | 04fcfdfb35f849fa8e8bd39a8e6b4faf55424e1e (patch) | |
tree | 4467c2401be16ba107a5f376a113ccd8571a97e5 /plugins/sonar-design-plugin | |
parent | f7a3046a0d84e501fdfdd031bcdde7653bca6658 (diff) | |
download | sonarqube-04fcfdfb35f849fa8e8bd39a8e6b4faf55424e1e.tar.gz sonarqube-04fcfdfb35f849fa8e8bd39a8e6b4faf55424e1e.zip |
SONAR-3114 Fix layout positionning on Chrome
Diffstat (limited to 'plugins/sonar-design-plugin')
-rw-r--r-- | plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/dependencies/dependencies_viewer.html.erb | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/dependencies/dependencies_viewer.html.erb b/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/dependencies/dependencies_viewer.html.erb index db5fccb2591..4ff8389a161 100644 --- a/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/dependencies/dependencies_viewer.html.erb +++ b/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/dependencies/dependencies_viewer.html.erb @@ -20,28 +20,26 @@ deps = deps_by_m[:dependencies] %> - <div id="<%= metric_name -%>-deps" style="float: left"> - <table class="col"> - <thead> - <tr class="coltitle"> - <th class="thin"></th> - <th><%= message('dependencies.' + metric_name) -%>: <b><%= format_measure(measure) -%></b></th> - </tr> - </thead> + <div id="<%= metric_name -%>-deps" class="col"> + + <div class="coltitle"> + <%= message('dependencies.' + metric_name) -%>: <b><%= format_measure(measure) -%></b> + </div> - <tbody> + <% unless deps.empty? %> + <div class="colbody"> <% deps.each do |dep| resource = metric_name=='ca' ? dep.from : dep.to %> - <tr> - <td class="thin"><%= image_tag 'q/CLA.png'-%></td> - <td><%= link_to_resource resource, resource.long_name, {:tab => 'dependencies'} -%> (<%= dep.weight -%>)</td> - </tr> + <div> + <%= image_tag 'q/CLA.png'-%> + <%= link_to_resource resource, resource.long_name, {:tab => 'dependencies'} -%> (<%= dep.weight -%>) + </div> <% end %> - </tbody> + </div> + <% end %> - </table> </div> <% end %> |