##// END OF EJS Templates
Option for long text custom fields to be displayed under the description field (#21705)....
Option for long text custom fields to be displayed under the description field (#21705). Based on patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@16251 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r15867:9814dcf231b5
r15869:b40d66f39fa8
Show More
_report_criteria.html.erb
19 lines | 999 B | text/plain | TextLexer
/ app / views / timelog / _report_criteria.html.erb
Jean-Philippe Lang
Extracted time report logic from the controller....
r7906 <% @report.hours.collect {|h| h[criterias[level]].to_s}.uniq.each do |value| %>
Jean-Philippe Lang
Propagates time tracking to the parent project (closes #433). Time report enhancements....
r1162 <% hours_for_value = select_hours(hours, criterias[level], value) -%>
<% next if hours_for_value.empty? -%>
Jean-Philippe Lang
Use css pseudo-classes instead of cycle("odd", "even") (#15361)....
r15867 <tr class="<%= criterias.length > level+1 ? 'subtotal' : 'last-level' %>">
Toshi MARUYAMA
Rails3: view: html_safe for timelog/_report_criteria.html.erb...
r8329 <%= ("<td></td>" * level).html_safe %>
Jean-Philippe Lang
Removed unneeded #h calls in views....
r13661 <td class="name"><%= format_criteria_value(@report.available_criteria[criterias[level]], value) %></td>
Toshi MARUYAMA
Rails3: view: html_safe for timelog/_report_criteria.html.erb...
r8329 <%= ("<td></td>" * (criterias.length - level - 1)).html_safe -%>
Jean-Philippe Lang
Various timelog report enhancements:...
r1311 <% total = 0 -%>
Jean-Philippe Lang
Extracted time report logic from the controller....
r7906 <% @report.periods.each do |period| -%>
<% sum = sum_hours(select_hours(hours_for_value, @report.columns, period.to_s)); total += sum -%>
Jean-Philippe Lang
Test broken, display hours like in other tables (#23996)....
r15585 <td class="hours"><%= html_hours(format_hours(sum)) if sum > 0 %></td>
Jean-Philippe Lang
Propagates time tracking to the parent project (closes #433). Time report enhancements....
r1162 <% end -%>
Jean-Philippe Lang
Test broken, display hours like in other tables (#23996)....
r15585 <td class="hours"><%= html_hours(format_hours(total)) if total > 0 %></td>
Jean-Philippe Lang
Added time report....
r569 </tr>
Jean-Philippe Lang
Propagates time tracking to the parent project (closes #433). Time report enhancements....
r1162 <% if criterias.length > level+1 -%>
Jean-Philippe Lang
Added time report....
r569 <%= render(:partial => 'report_criteria', :locals => {:criterias => criterias, :hours => hours_for_value, :level => (level + 1)}) %>
Jean-Philippe Lang
Propagates time tracking to the parent project (closes #433). Time report enhancements....
r1162 <% end -%>
Jean-Philippe Lang
Added time report....
r569
<% end %>