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 / _overview.html.erb @ 1591:63650ae64bf2
History | View | Annotate | Download (1.73 KB)
| 1 |
<% 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],
|
| 20 |
:width => '40em', :legend => ('%0.0f%' % version.completed_percent)) %>
|
| 21 |
<p class="progress-info"> |
| 22 |
<%= link_to(l(:label_x_issues, :count => version.issues_count),
|
| 23 |
project_issues_path(version.project,
|
| 24 |
:status_id => '*', :fixed_version_id => version,
|
| 25 |
:set_filter => 1)) %>
|
| 26 |
|
| 27 |
(<%= link_to_if(version.closed_issues_count > 0,
|
| 28 |
l(:label_x_closed_issues_abbr, :count => version.closed_issues_count),
|
| 29 |
project_issues_path(version.project, :status_id => 'c',
|
| 30 |
:fixed_version_id => version, :set_filter => 1)) %>
|
| 31 |
—
|
| 32 |
<%= link_to_if(version.open_issues_count > 0,
|
| 33 |
l(:label_x_open_issues_abbr, :count => version.open_issues_count),
|
| 34 |
project_issues_path(version.project, :status_id => 'o',
|
| 35 |
:fixed_version_id => version, :set_filter => 1)) %>)
|
| 36 |
</p>
|
| 37 |
<% else %>
|
| 38 |
<p class="progress-info"><%= l(:label_roadmap_no_issues) %></p> |
| 39 |
<% end %>
|