annotate app/views/versions/_overview.rhtml @ 1452:d6b9fd02bb89 feature_36_js_refactoring

Deprecated develoment branch.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Fri, 11 Oct 2013 17:01:24 +0100
parents 513646585e45
children
rev   line source
Chris@0 1 <% if version.completed? %>
Chris@0 2 <p><%= format_date(version.effective_date) %></p>
Chris@0 3 <% elsif version.effective_date %>
Chris@0 4 <p><strong><%= due_date_distance_in_words(version.effective_date) %></strong> (<%= format_date(version.effective_date) %>)</p>
Chris@0 5 <% end %>
Chris@0 6
Chris@0 7 <p><%=h version.description %></p>
Chris@0 8 <ul>
Chris@0 9 <% version.custom_values.each do |custom_value| %>
Chris@0 10 <% if !custom_value.value.blank? %>
Chris@0 11 <li><%=h custom_value.custom_field.name %>: <%=h show_value(custom_value) %></li>
Chris@0 12 <% end %>
Chris@0 13 <% end %>
Chris@0 14 </ul>
Chris@0 15
Chris@0 16 <% if version.fixed_issues.count > 0 %>
Chris@0 17 <%= progress_bar([version.closed_pourcent, version.completed_pourcent], :width => '40em', :legend => ('%0.0f%' % version.completed_pourcent)) %>
Chris@0 18 <p class="progress-info">
Chris@0 19 <%= link_to_if(version.closed_issues_count > 0, l(:label_x_closed_issues_abbr, :count => version.closed_issues_count), :controller => 'issues', :action => 'index', :project_id => version.project, :status_id => 'c', :fixed_version_id => version, :set_filter => 1) %>
Chris@0 20 (<%= '%0.0f' % (version.closed_issues_count.to_f / version.fixed_issues.count * 100) %>%)
Chris@0 21 &#160;
Chris@0 22 <%= link_to_if(version.open_issues_count > 0, l(:label_x_open_issues_abbr, :count => version.open_issues_count), :controller => 'issues', :action => 'index', :project_id => version.project, :status_id => 'o', :fixed_version_id => version, :set_filter => 1) %>
Chris@0 23 (<%= '%0.0f' % (version.open_issues_count.to_f / version.fixed_issues.count * 100) %>%)
Chris@0 24 </p>
Chris@0 25 <% else %>
Chris@0 26 <p><em><%= l(:label_roadmap_no_issues) %></em></p>
Chris@0 27 <% end %>