Mercurial > hg > soundsoftware-site
diff 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 |
line wrap: on
line diff
--- a/app/views/versions/_issue_counts.html.erb Wed Jun 27 14:54:18 2012 +0100 +++ b/app/views/versions/_issue_counts.html.erb Mon Jan 07 12:01:42 2013 +0000 @@ -1,12 +1,11 @@ -<form id="status_by_form"> +<%= form_tag({}, :id => "status_by_form") do -%> <fieldset> <legend> <%= l(:label_issues_by, select_tag('status_by', status_by_options_for_select(criteria), :id => 'status_by_select', - :onchange => remote_function(:url => status_by_version_path(version), - :with => "Form.serialize('status_by_form')"))) %> + :data => {:remote => true, :method => 'post', :url => status_by_version_path(version)})).html_safe %> </legend> <% if counts.empty? %> <p><em><%= l(:label_no_data) %></em></p> @@ -15,12 +14,11 @@ <% counts.each do |count| %> <tr> <td width="130px" align="right" > - <%= link_to h(count[:group]), {:controller => 'issues', - :action => 'index', - :project_id => version.project, - :set_filter => 1, - :status_id => '*', - :fixed_version_id => version}.merge("#{criteria}_id".to_sym => count[:group]) %> + <% if count[:group] -%> + <%= link_to(h(count[:group]), project_issues_path(version.project, :set_filter => 1, :status_id => '*', :fixed_version_id => version, "#{criteria}_id" => count[:group])) %> + <% else -%> + <%= link_to(l(:label_none), project_issues_path(version.project, :set_filter => 1, :status_id => '*', :fixed_version_id => version, "#{criteria}_id" => "!*")) %> + <% end %> </td> <td width="240px"> <%= progress_bar((count[:closed].to_f / count[:total])*100, @@ -32,4 +30,4 @@ </table> <% end %> </fieldset> -</form> +<% end %>