]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3524 Move message to display when leaf is reached on second line
authorJulien Lancelot <julien.lancelot@gmail.com>
Wed, 28 Aug 2013 13:47:08 +0000 (15:47 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Wed, 28 Aug 2013 13:47:08 +0000 (15:47 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/measures/_display_treemap.html.erb

index 20148674d412c1cf1c874e031b682d711dfb645e..8987e3701f699340bd0b8f1b228b83bce7bf8cc2 100644 (file)
@@ -4,20 +4,29 @@
 <%
    treemap_id = widget_id.nil? ? 1 : widget_id
    unless edit_mode
+    colspan = 1
 %>
   <table class="spaced">
     <tr>
       <% if filter.display.size_metric %>
         <td class="thin nowrap"><span class="note"><%= message('size') -%>: <b><%= filter.display.size_metric.short_name -%></b></span></td>
-      <% end %>
+      <%
+         colspan += 1
+         end %>
       <% if filter.display.color_metric %>
         <td class="thin nowrap">
           <span class="note"><%= message('color') -%>
             : <b><%= filter.display.color_metric.short_name -%></b> <%= render :partial => 'treemap/gradient', :locals => {:metric => filter.display.color_metric} %></span>
         </td>
-      <% end %>
+      <%
+         colspan += 1
+         end %>
       <td>
         <%= image_tag 'loading-small.gif', :id => "tm-loading-#{treemap_id}", :style => 'display:none' -%>
+      </td>
+    </tr>
+    <tr>
+      <td colspan="<%= colspan.to_s %>">
         <span id="tm-bottom-level-reached-msg-<%= treemap_id %>" class="note" style="display:none;"><%= message('treemap.bootom_level_reached') -%></span>
       </td>
     </tr>