_issue_counts.html.erb
33 lines
| 1.3 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> | ||||
<td width="130px" align="right" > | ||||
|
r10550 | <% if count[:group] -%> | ||
|
r10549 | <%= link_to(h(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> | ||
<td width="240px"> | ||||
|
r6218 | <%= progress_bar((count[:closed].to_f / count[:total])*100, | ||
|
r942 | :legend => "#{count[:closed]}/#{count[:total]}", | ||
:width => "#{(count[:total].to_f / max * 200).floor}px;") %> | ||||
</td> | ||||
</tr> | ||||
<% end %> | ||||
</table> | ||||
<% end %> | ||||
</fieldset> | ||||
|
r8442 | <% end %> | ||