You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_issue_counts.html.erb 1.2KB

1234567891011121314151617181920212223242526272829303132
  1. <%= form_tag({}, :id => "status_by_form") do -%>
  2. <fieldset>
  3. <legend>
  4. <%= l(:label_issues_by,
  5. select_tag('status_by',
  6. status_by_options_for_select(criteria),
  7. :id => 'status_by_select',
  8. :data => {:remote => true, :method => 'post', :url => status_by_version_path(version)})).html_safe %>
  9. </legend>
  10. <% if counts.empty? %>
  11. <p><em><%= l(:label_no_data) %></em></p>
  12. <% else %>
  13. <table>
  14. <% counts.each do |count| %>
  15. <tr>
  16. <td style="width:130px; text-align:right;">
  17. <% if count[:group] -%>
  18. <%= link_to(count[:group], project_issues_path(version.project, :set_filter => 1, :status_id => '*', :fixed_version_id => version, "#{criteria}_id" => count[:group])) %>
  19. <% else -%>
  20. <%= link_to(l(:label_none), project_issues_path(version.project, :set_filter => 1, :status_id => '*', :fixed_version_id => version, "#{criteria}_id" => "!*")) %>
  21. <% end %>
  22. </td>
  23. <td style="width:240px;">
  24. <%= progress_bar((count[:closed].to_f / count[:total])*100,
  25. :legend => "#{count[:closed]}/#{count[:total]}") %>
  26. </td>
  27. </tr>
  28. <% end %>
  29. </table>
  30. <% end %>
  31. </fieldset>
  32. <% end %>