To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / versions / _overview.html.erb @ 1298:4f746d8966dd

History | View | Annotate | Download (1.56 KB)

1 0:513646585e45 Chris
<% if version.completed? %>
2
  <p><%= format_date(version.effective_date) %></p>
3
<% elsif version.effective_date %>
4
  <p><strong><%= due_date_distance_in_words(version.effective_date) %></strong> (<%= format_date(version.effective_date) %>)</p>
5
<% end %>
6
7
<p><%=h version.description %></p>
8 1115:433d4f72a19b Chris
<% if version.custom_field_values.any? %>
9 0:513646585e45 Chris
<ul>
10 1115:433d4f72a19b Chris
  <% version.custom_field_values.each do |custom_value| %>
11
    <% if custom_value.value.present? %>
12 909:cbb26bc654de Chris
       <li><%=h custom_value.custom_field.name %>: <%=h show_value(custom_value) %></li>
13
    <% end %>
14
  <% end %>
15 0:513646585e45 Chris
</ul>
16 1115:433d4f72a19b Chris
<% end %>
17 0:513646585e45 Chris
18 1115:433d4f72a19b Chris
<% if version.issues_count > 0 %>
19 1295:622f24f53b42 Chris
    <%= progress_bar([version.closed_percent, version.completed_percent], :width => '40em', :legend => ('%0.0f%' % version.completed_percent)) %>
20 0:513646585e45 Chris
    <p class="progress-info">
21 1115:433d4f72a19b Chris
              <%= link_to(l(:label_x_issues, :count => version.issues_count),
22
              project_issues_path(version.project, :status_id => '*', :fixed_version_id => version, :set_filter => 1)) %>
23
                                &nbsp;
24
        (<%= link_to_if(version.closed_issues_count > 0, l(:label_x_closed_issues_abbr, :count => version.closed_issues_count),
25
               project_issues_path(version.project, :status_id => 'c', :fixed_version_id => version, :set_filter => 1)) %>
26
        &#8212;
27
        <%= link_to_if(version.open_issues_count > 0, l(:label_x_open_issues_abbr, :count => version.open_issues_count),
28
              project_issues_path(version.project, :status_id => 'o', :fixed_version_id => version, :set_filter => 1)) %>)
29 0:513646585e45 Chris
    </p>
30
<% else %>
31 1115:433d4f72a19b Chris
    <p class="progress-info"><%= l(:label_roadmap_no_issues) %></p>
32 0:513646585e45 Chris
<% end %>