##// END OF EJS Templates
Raise the height of text custom fields....
Raise the height of text custom fields. git-svn-id: http://svn.redmine.org/redmine/trunk@16252 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r15867:9814dcf231b5
r15870:8e4cb42f8e06
Show More
_report_criteria.html.erb
19 lines | 999 B | text/plain | TextLexer
/ app / views / timelog / _report_criteria.html.erb
<% @report.hours.collect {|h| h[criterias[level]].to_s}.uniq.each do |value| %>
<% hours_for_value = select_hours(hours, criterias[level], value) -%>
<% next if hours_for_value.empty? -%>
<tr class="<%= criterias.length > level+1 ? 'subtotal' : 'last-level' %>">
<%= ("<td></td>" * level).html_safe %>
<td class="name"><%= format_criteria_value(@report.available_criteria[criterias[level]], value) %></td>
<%= ("<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 -%>
<td class="hours"><%= html_hours(format_hours(sum)) if sum > 0 %></td>
<% end -%>
<td class="hours"><%= html_hours(format_hours(total)) if total > 0 %></td>
</tr>
<% if criterias.length > level+1 -%>
<%= render(:partial => 'report_criteria', :locals => {:criterias => criterias, :hours => hours_for_value, :level => (level + 1)}) %>
<% end -%>
<% end %>