diff .svn/pristine/94/94581a268dafa5267b3bc1495ad4b15dd18a588e.svn-base @ 1464:261b3d9a4903 redmine-2.4

Update to Redmine 2.4 branch rev 12663
author Chris Cannam
date Tue, 14 Jan 2014 14:37:42 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.svn/pristine/94/94581a268dafa5267b3bc1495ad4b15dd18a588e.svn-base	Tue Jan 14 14:37:42 2014 +0000
@@ -0,0 +1,33 @@
+<%= 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',
+                   :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>
+<% else %>
+    <table>
+    <% counts.each do |count| %>
+    <tr>
+        <td style="width:130px; text-align:right;">
+          <% 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 style="width:240px;">
+            <%= progress_bar((count[:closed].to_f / count[:total])*100,
+                  :legend => "#{count[:closed]}/#{count[:total]}",
+                  :width => "#{(count[:total].to_f / max * 200).floor}px;") %>
+        </td>
+    </tr>
+    <% end %>
+    </table>
+<% end %>
+</fieldset>
+<% end %>