##// END OF EJS Templates
Trac importer: user can now choose between sqlite and sqlite3 adapter for Trac database....
Trac importer: user can now choose between sqlite and sqlite3 adapter for Trac database. Trac importer: issues and wiki modules are enabled by default for the imported project. Fixed: 404 error when trying to save a custom query under certain circumstance. git-svn-id: http://redmine.rubyforge.org/svn/trunk@894 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r585:4670426e4e6f
r881:b0bb1baeaac6
Show More
_report_criteria.rhtml
17 lines | 727 B | text/html+ruby | RhtmlLexer
/ app / views / timelog / _report_criteria.rhtml
<% @available_criterias[criterias[level]][:values].each do |value| %>
<tr class="<%= cycle('odd', 'even') if criterias.length < level + 2 %>">
<%= '<td></td>' * level %>
<td><%= value.name %></td>
<%= '<td></td>' * (criterias.length - level - 1) %>
<% hours_for_value = select_hours(hours, criterias[level], value.id) %>
<% @periods.each do |period| %>
<% sum = sum_hours(select_hours(hours_for_value, @columns, period.to_s)) %>
<td align="center"><%= sum > 0 ? "%.2f" % sum : "-" %></td>
<% end %>
</tr>
<% if criterias.length > level+1 %>
<%= render(:partial => 'report_criteria', :locals => {:criterias => criterias, :hours => hours_for_value, :level => (level + 1)}) %>
<% end %>
<% end %>
<% reset_cycle %>