##// END OF EJS Templates
Always show 'View' and 'Annotate' links on repository files (download will be forced when clicking 'View' if the file is binary)....
Always show 'View' and 'Annotate' links on repository files (download will be forced when clicking 'View' if the file is binary). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1274 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r1162:200842ba5e75
r1259:f162337e1b36
Show More
_report_criteria.rhtml
17 lines | 860 B | text/html+ruby | RhtmlLexer
/ app / views / timelog / _report_criteria.rhtml
Jean-Philippe Lang
Propagates time tracking to the parent project (closes #433). Time report enhancements....
r1162 <% @hours.collect {|h| h[criterias[level]]}.uniq.each do |value| %>
<% hours_for_value = select_hours(hours, criterias[level], value) -%>
<% next if hours_for_value.empty? -%>
<tr class="<%= cycle('odd', 'even') %> <%= 'last-level' unless criterias.length > level+1 %>">
Jean-Philippe Lang
Added time report....
r569 <%= '<td></td>' * level %>
Jean-Philippe Lang
Propagates time tracking to the parent project (closes #433). Time report enhancements....
r1162 <td><%= value.nil? ? l(:label_none) : @available_criterias[criterias[level]][:klass].find_by_id(value) %></td>
<%= '<td></td>' * (criterias.length - level - 1) -%>
<% @periods.each do |period| -%>
Jean-Philippe Lang
Added time report....
r569 <% sum = sum_hours(select_hours(hours_for_value, @columns, period.to_s)) %>
Jean-Philippe Lang
Propagates time tracking to the parent project (closes #433). Time report enhancements....
r1162 <td class="hours"><%= html_hours("%.2f" % sum) if sum > 0 %></td>
<% end -%>
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 %>