Sha256: 5d0978f6c88c2bec928ae20889bb6b04e7471577780c35325bdd95a170755a7d

Contents?: true

Size: 1017 Bytes

Versions: 34

Compression:

Stored size: 1017 Bytes

Contents

<% @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="<%= cycle('odd', 'even') %> <%= 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("%.2f" % sum) if sum > 0 %></td>
  <% end -%>
  <td class="hours"><%= html_hours("%.2f" % 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 %>

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
redmine_extensions-0.0.39 spec/redmine/app/views/timelog/_report_criteria.html.erb
redmine_extensions-0.0.38 spec/redmine/app/views/timelog/_report_criteria.html.erb
redmine_extensions-0.0.37 spec/redmine/app/views/timelog/_report_criteria.html.erb
redmine_extensions-0.1.11 spec/redmine/app/views/timelog/_report_criteria.html.erb
redmine_extensions-0.1.10 spec/redmine/app/views/timelog/_report_criteria.html.erb
redmine_extensions-0.0.36 spec/redmine/app/views/timelog/_report_criteria.html.erb
redmine_extensions-0.0.34 spec/redmine/app/views/timelog/_report_criteria.html.erb
redmine_extensions-0.1.09 spec/redmine/app/views/timelog/_report_criteria.html.erb
redmine_extensions-0.1.07 spec/redmine/app/views/timelog/_report_criteria.html.erb
redmine_extensions-0.1.06 spec/redmine/app/views/timelog/_report_criteria.html.erb
redmine_extensions-0.1.05 spec/redmine/app/views/timelog/_report_criteria.html.erb
redmine_extensions-0.1.04 spec/redmine/app/views/timelog/_report_criteria.html.erb
redmine_extensions-0.1.03 spec/redmine/app/views/timelog/_report_criteria.html.erb
redmine_extensions-0.0.33 spec/redmine/app/views/timelog/_report_criteria.html.erb
redmine_extensions-0.1.02 spec/redmine/app/views/timelog/_report_criteria.html.erb
redmine_extensions-0.1.01 spec/redmine/app/views/timelog/_report_criteria.html.erb
redmine_extensions-0.0.29 spec/redmine/app/views/timelog/_report_criteria.html.erb
redmine_extensions-0.0.28 spec/redmine/app/views/timelog/_report_criteria.html.erb
redmine_extensions-0.0.27 spec/redmine/app/views/timelog/_report_criteria.html.erb
redmine_extensions-0.0.24 spec/redmine/app/views/timelog/_report_criteria.html.erb