Mercurial > hg > soundsoftware-site
comparison .svn/pristine/b6/b6a2caf496a03e85c1175dd3619219a219866eff.svn-base @ 909:cbb26bc654de redmine-1.3
Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author | Chris Cannam |
---|---|
date | Fri, 24 Feb 2012 19:09:32 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
908:c6c2cbd0afee | 909:cbb26bc654de |
---|---|
1 <% @hours.collect {|h| h[criterias[level]].to_s}.uniq.each do |value| %> | |
2 <% hours_for_value = select_hours(hours, criterias[level], value) -%> | |
3 <% next if hours_for_value.empty? -%> | |
4 <tr class="<%= cycle('odd', 'even') %> <%= 'last-level' unless criterias.length > level+1 %>"> | |
5 <%= '<td></td>' * level %> | |
6 <td><%= h(format_criteria_value(criterias[level], value)) %></td> | |
7 <%= '<td></td>' * (criterias.length - level - 1) -%> | |
8 <% total = 0 -%> | |
9 <% @periods.each do |period| -%> | |
10 <% sum = sum_hours(select_hours(hours_for_value, @columns, period.to_s)); total += sum -%> | |
11 <td class="hours"><%= html_hours("%.2f" % sum) if sum > 0 %></td> | |
12 <% end -%> | |
13 <td class="hours"><%= html_hours("%.2f" % total) if total > 0 %></td> | |
14 </tr> | |
15 <% if criterias.length > level+1 -%> | |
16 <%= render(:partial => 'report_criteria', :locals => {:criterias => criterias, :hours => hours_for_value, :level => (level + 1)}) %> | |
17 <% end -%> | |
18 | |
19 <% end %> |