]> source.dussan.org Git - redmine.git/commitdiff
Rails3: view: html_safe for timelog/_report_criteria.html.erb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 1 Jan 2012 06:11:01 +0000 (06:11 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 1 Jan 2012 06:11:01 +0000 (06:11 +0000)
Contributed by Eric Cline.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8449 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/timelog/_report_criteria.html.erb

index d3239ec0188197fd14e556d5cdb34ddb6605c168..9a5d142f2b5602e547af66a2e835a200e17f86e6 100644 (file)
@@ -2,9 +2,9 @@
 <% hours_for_value = select_hours(hours, criterias[level], value) -%>
 <% next if hours_for_value.empty? -%>
 <tr class="<%= cycle('odd', 'even') %> <%= criterias.length > level+1 ? 'subtotal' : 'last-level' %>">
-<%= '<td></td>' * level %>
+<%= ("<td></td>" * level).html_safe %>
 <td><%= h(format_criteria_value(@report.available_criteria[criterias[level]], value)) %></td>
-<%= '<td></td>' * (criterias.length - level - 1) -%>
+<%= ("<td></td>" * (criterias.length - level - 1)).html_safe -%>
   <% total = 0 -%>
   <% @report.periods.each do |period| -%>
     <% sum = sum_hours(select_hours(hours_for_value, @report.columns, period.to_s)); total += sum -%>