Mercurial > hg > soundsoftware-site
comparison app/views/versions/_issue_counts.html.erb @ 1115:433d4f72a19b redmine-2.2
Update to Redmine SVN revision 11137 on 2.2-stable branch
author | Chris Cannam |
---|---|
date | Mon, 07 Jan 2013 12:01:42 +0000 |
parents | cbb26bc654de |
children | 261b3d9a4903 |
comparison
equal
deleted
inserted
replaced
929:5f33065ddc4b | 1115:433d4f72a19b |
---|---|
1 <form id="status_by_form"> | 1 <%= form_tag({}, :id => "status_by_form") do -%> |
2 <fieldset> | 2 <fieldset> |
3 <legend> | 3 <legend> |
4 <%= l(:label_issues_by, | 4 <%= l(:label_issues_by, |
5 select_tag('status_by', | 5 select_tag('status_by', |
6 status_by_options_for_select(criteria), | 6 status_by_options_for_select(criteria), |
7 :id => 'status_by_select', | 7 :id => 'status_by_select', |
8 :onchange => remote_function(:url => status_by_version_path(version), | 8 :data => {:remote => true, :method => 'post', :url => status_by_version_path(version)})).html_safe %> |
9 :with => "Form.serialize('status_by_form')"))) %> | |
10 </legend> | 9 </legend> |
11 <% if counts.empty? %> | 10 <% if counts.empty? %> |
12 <p><em><%= l(:label_no_data) %></em></p> | 11 <p><em><%= l(:label_no_data) %></em></p> |
13 <% else %> | 12 <% else %> |
14 <table> | 13 <table> |
15 <% counts.each do |count| %> | 14 <% counts.each do |count| %> |
16 <tr> | 15 <tr> |
17 <td width="130px" align="right" > | 16 <td width="130px" align="right" > |
18 <%= link_to h(count[:group]), {:controller => 'issues', | 17 <% if count[:group] -%> |
19 :action => 'index', | 18 <%= link_to(h(count[:group]), project_issues_path(version.project, :set_filter => 1, :status_id => '*', :fixed_version_id => version, "#{criteria}_id" => count[:group])) %> |
20 :project_id => version.project, | 19 <% else -%> |
21 :set_filter => 1, | 20 <%= link_to(l(:label_none), project_issues_path(version.project, :set_filter => 1, :status_id => '*', :fixed_version_id => version, "#{criteria}_id" => "!*")) %> |
22 :status_id => '*', | 21 <% end %> |
23 :fixed_version_id => version}.merge("#{criteria}_id".to_sym => count[:group]) %> | |
24 </td> | 22 </td> |
25 <td width="240px"> | 23 <td width="240px"> |
26 <%= progress_bar((count[:closed].to_f / count[:total])*100, | 24 <%= progress_bar((count[:closed].to_f / count[:total])*100, |
27 :legend => "#{count[:closed]}/#{count[:total]}", | 25 :legend => "#{count[:closed]}/#{count[:total]}", |
28 :width => "#{(count[:total].to_f / max * 200).floor}px;") %> | 26 :width => "#{(count[:total].to_f / max * 200).floor}px;") %> |
30 </tr> | 28 </tr> |
31 <% end %> | 29 <% end %> |
32 </table> | 30 </table> |
33 <% end %> | 31 <% end %> |
34 </fieldset> | 32 </fieldset> |
35 </form> | 33 <% end %> |