@@ -1,35 +1,35 | |||||
1 | <form id="status_by_form"> |
|
1 | <form id="status_by_form"> | |
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_project_version_path(version.project, version), |
|
8 | :onchange => remote_function(:url => status_by_project_version_path(version.project, version), | |
9 | :with => "Form.serialize('status_by_form')"))) %> |
|
9 | :with => "Form.serialize('status_by_form')"))) %> | |
10 | </legend> |
|
10 | </legend> | |
11 | <% if counts.empty? %> |
|
11 | <% if counts.empty? %> | |
12 | <p><em><%= l(:label_no_data) %></em></p> |
|
12 | <p><em><%= l(:label_no_data) %></em></p> | |
13 | <% else %> |
|
13 | <% else %> | |
14 | <table> |
|
14 | <table> | |
15 | <% counts.each do |count| %> |
|
15 | <% counts.each do |count| %> | |
16 | <tr> |
|
16 | <tr> | |
17 | <td width="130px" align="right" > |
|
17 | <td width="130px" align="right" > | |
18 | <%= link_to count[:group], {:controller => 'issues', |
|
18 | <%= link_to count[:group], {:controller => 'issues', | |
19 | :action => 'index', |
|
19 | :action => 'index', | |
20 | :project_id => version.project, |
|
20 | :project_id => version.project, | |
21 | :set_filter => 1, |
|
21 | :set_filter => 1, | |
22 |
: |
|
22 | :status_id => '*', | |
23 |
"#{criteria}_id" => count[:group] |
|
23 | :fixed_version_id => version}.merge("#{criteria}_id".to_sym => count[:group]) %> | |
24 | </td> |
|
24 | </td> | |
25 | <td width="240px"> |
|
25 | <td width="240px"> | |
26 | <%= progress_bar((count[:closed].to_f / count[:total])*100, |
|
26 | <%= progress_bar((count[:closed].to_f / count[:total])*100, | |
27 | :legend => "#{count[:closed]}/#{count[:total]}", |
|
27 | :legend => "#{count[:closed]}/#{count[:total]}", | |
28 | :width => "#{(count[:total].to_f / max * 200).floor}px;") %> |
|
28 | :width => "#{(count[:total].to_f / max * 200).floor}px;") %> | |
29 | </td> |
|
29 | </td> | |
30 | </tr> |
|
30 | </tr> | |
31 | <% end %> |
|
31 | <% end %> | |
32 | </table> |
|
32 | </table> | |
33 | <% end %> |
|
33 | <% end %> | |
34 | </fieldset> |
|
34 | </fieldset> | |
35 | </form> |
|
35 | </form> |
General Comments 0
You need to be logged in to leave comments.
Login now