gantt: use content_tag instead of html tag at gantt subject

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10320 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2012-09-08 00:59:08 +00:00
parent 23eae0bf3c
commit 2edb8d597a
+28 -11
View File
@@ -71,17 +71,34 @@ t_height = g_height + headers_height
<table style="width:100%; border:0; border-collapse: collapse;"> <table style="width:100%; border:0; border-collapse: collapse;">
<tr> <tr>
<td style="width:<%= subject_width %>px; padding:0px;"> <td style="width:<%= subject_width %>px; padding:0px;">
<%
<div style="position:relative;height:<%= t_height + 24 %>px;width:<%= subject_width + 1 %>px;"> style = ""
<div style="right:-2px;width:<%= subject_width %>px;height:<%= headers_height %>px;background: #eee;" class="gantt_hdr"></div> style += "position:relative;"
<div style="right:-2px;width:<%= subject_width %>px;height:<%= t_height %>px;border-left: 1px solid #c0c0c0;overflow:hidden;" style += "height: #{t_height + 24}px;"
class="gantt_hdr"></div> style += "width: #{subject_width + 1}px;"
%>
<div class="gantt_subjects"> <%= content_tag(:div, :style => style) do %>
<%= @gantt.subjects.html_safe %> <%
</div> style = ""
style += "right:-2px;"
</div> style += "width: #{subject_width}px;"
style += "height: #{headers_height}px;"
style += 'background: #eee;'
%>
<%= content_tag(:div, "", :style => style, :class => "gantt_hdr") %>
<%
style = ""
style += "right:-2px;"
style += "width: #{subject_width}px;"
style += "height: #{t_height}px;"
style += 'border-left: 1px solid #c0c0c0;'
style += 'overflow: hidden;'
%>
<%= content_tag(:div, "", :style => style, :class => "gantt_hdr") %>
<%= content_tag(:div, :class => "gantt_subjects") do %>
<%= @gantt.subjects.html_safe %>
<% end %>
<% end %>
</td> </td>
<td> <td>