]> source.dussan.org Git - redmine.git/commitdiff
gantt: use content_tag instead of html tag at gantt header outline
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 8 Sep 2012 02:00:32 +0000 (02:00 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 8 Sep 2012 02:00:32 +0000 (02:00 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10323 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/gantts/show.html.erb

index 2e5c1aa874e476668e7edc9374693e0a6a13de04..556be7d5e2b862f1e5ea10ab58a7f719ad1c6a1f 100644 (file)
     <% end %>
   <% end %>
 </td>
-<td>
 
+<td>
 <div style="position:relative;height:<%= t_height + 24 %>px;overflow:auto;">
-<div style="width:<%= g_width - 1 %>px;height:<%= headers_height %>px;background: #eee;"
-     class="gantt_hdr">&nbsp;</div>
+<%
+  style  = ""
+  style += "width: #{g_width - 1}px;"
+  style += "height: #{headers_height}px;"
+  style += 'background: #eee;'
+%>
+<%= content_tag(:div, '&nbsp;'.html_safe, :style => style, :class => "gantt_hdr") %>
 
 <% ###### Months headers ###### %>
 <%