To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / versions / _issue_counts.html.erb @ 1591:63650ae64bf2
History | View | Annotate | Download (1.3 KB)
| 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(h(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 |
:width => "#{(count[:total].to_f / max * 200).floor}px;") %>
|
| 27 |
</td>
|
| 28 |
</tr>
|
| 29 |
<% end %>
|
| 30 |
</table>
|
| 31 |
<% end %>
|
| 32 |
</fieldset>
|
| 33 |
<% end %>
|