_issue_counts.html.erb
32 lines
| 1.2 KiB
| text/plain
|
TextLexer
|
r9346 | <%= form_tag({}, :id => "status_by_form") do -%> | ||
|
r942 | <fieldset> | ||
<legend> | ||||
|
r6218 | <%= l(:label_issues_by, | ||
|
r942 | select_tag('status_by', | ||
status_by_options_for_select(criteria), | ||||
:id => 'status_by_select', | ||||
|
r9885 | :data => {:remote => true, :method => 'post', :url => status_by_version_path(version)})).html_safe %> | ||
|
r942 | </legend> | ||
<% if counts.empty? %> | ||||
<p><em><%= l(:label_no_data) %></em></p> | ||||
<% else %> | ||||
<table> | ||||
<% counts.each do |count| %> | ||||
<tr> | ||||
|
r12038 | <td style="width:130px; text-align:right;"> | ||
|
r10550 | <% if count[:group] -%> | ||
|
r13661 | <%= link_to(count[:group], project_issues_path(version.project, :set_filter => 1, :status_id => '*', :fixed_version_id => version, "#{criteria}_id" => count[:group])) %> | ||
|
r10550 | <% else -%> | ||
|
r10549 | <%= link_to(l(:label_none), project_issues_path(version.project, :set_filter => 1, :status_id => '*', :fixed_version_id => version, "#{criteria}_id" => "!*")) %> | ||
|
r10550 | <% end %> | ||
|
r942 | </td> | ||
|
r12038 | <td style="width:240px;"> | ||
|
r6218 | <%= progress_bar((count[:closed].to_f / count[:total])*100, | ||
|
r14469 | :legend => "#{count[:closed]}/#{count[:total]}") %> | ||
|
r942 | </td> | ||
</tr> | ||||
<% end %> | ||||
</table> | ||||
<% end %> | ||||
</fieldset> | ||||
|
r8442 | <% end %> | ||