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 / .svn / pristine / 2b / 2b9b5932a0933b4096addb68309527dfbf45da2c.svn-base @ 1298:4f746d8966dd

History | View | Annotate | Download (1.56 KB)

1 1295:622f24f53b42 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
<% if version.custom_field_values.any? %>
9
<ul>
10
  <% version.custom_field_values.each do |custom_value| %>
11
    <% if custom_value.value.present? %>
12
       <li><%=h custom_value.custom_field.name %>: <%=h show_value(custom_value) %></li>
13
    <% end %>
14
  <% end %>
15
</ul>
16
<% end %>
17
18
<% if version.issues_count > 0 %>
19
    <%= progress_bar([version.closed_percent, version.completed_percent], :width => '40em', :legend => ('%0.0f%' % version.completed_percent)) %>
20
    <p class="progress-info">
21
    	  <%= 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
    </p>
30
<% else %>
31
    <p class="progress-info"><%= l(:label_roadmap_no_issues) %></p>
32
<% end %>