Commit e2091f7b authored by jplang's avatar jplang
Browse files

Provide a direct access to completed versions form the roadmap.

git-svn-id: https://svn.redmine.org/redmine/trunk@8699 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 50b1ebd2
......@@ -39,7 +39,10 @@ class VersionsController < ApplicationController
@versions = @project.shared_versions || []
@versions += @project.rolled_up_versions.visible if @with_subprojects
@versions = @versions.uniq.sort
@versions.reject! {|version| version.closed? || version.completed? } unless params[:completed]
unless params[:completed]
@completed_versions = @versions.select {|version| version.closed? || version.completed? }
@versions -= @completed_versions
end
@issues_by_version = {}
unless @selected_tracker_ids.empty?
......
......@@ -51,6 +51,16 @@
<% @versions.each do |version| %>
<%= link_to format_version_name(version), :anchor => anchor(version.name) %><br />
<% end %>
<% if @completed_versions.present? %>
<p>
<%= link_to_function l(:label_completed_versions),
'Element.toggleClassName("toggle-completed-versions", "collapsed"); Element.toggle("completed-versions")',
:id => 'toggle-completed-versions', :class => 'collapsible collapsed' %><br />
<span id="completed-versions" style="display:none;">
<%= @completed_versions.map {|version| link_to format_version_name(version), version_path(version)}.join("<br />\n".html_safe) %>
</span>
</p>
<% end %>
<% end %>
<% html_title(l(:label_roadmap)) %>
......
......@@ -1015,3 +1015,4 @@ ar:
field_repository_is_default: Main repository
label_copy_attachments: Copy attachments
label_item_position: "%{position}/%{count}"
label_completed_versions: Completed versions
......@@ -1013,3 +1013,4 @@ bg:
description_date_to: Въведете крайна дата
label_copy_attachments: Copy attachments
label_item_position: "%{position}/%{count}"
label_completed_versions: Completed versions
......@@ -1029,3 +1029,4 @@ bs:
field_repository_is_default: Main repository
label_copy_attachments: Copy attachments
label_item_position: "%{position}/%{count}"
label_completed_versions: Completed versions
......@@ -1017,3 +1017,4 @@ ca:
field_repository_is_default: Main repository
label_copy_attachments: Copy attachments
label_item_position: "%{position}/%{count}"
label_completed_versions: Completed versions
......@@ -1018,3 +1018,4 @@ cs:
field_repository_is_default: Main repository
label_copy_attachments: Copy attachments
label_item_position: "%{position}/%{count}"
label_completed_versions: Completed versions
......@@ -1032,3 +1032,4 @@ da:
field_repository_is_default: Main repository
label_copy_attachments: Copy attachments
label_item_position: "%{position}/%{count}"
label_completed_versions: Completed versions
......@@ -1035,3 +1035,4 @@ de:
field_repository_is_default: Main repository
label_copy_attachments: Copy attachments
label_item_position: "%{position}/%{count}"
label_completed_versions: Completed versions
......@@ -1015,3 +1015,4 @@ el:
field_repository_is_default: Main repository
label_copy_attachments: Copy attachments
label_item_position: "%{position}/%{count}"
label_completed_versions: Completed versions
......@@ -1017,3 +1017,4 @@ en-GB:
field_repository_is_default: Main repository
label_copy_attachments: Copy attachments
label_item_position: "%{position} of %{count}"
label_completed_versions: Completed versions
......@@ -838,6 +838,7 @@ en:
label_export_options: "%{export_format} export options"
label_copy_attachments: Copy attachments
label_item_position: %{position} of %{count}
label_completed_versions: Completed versions
button_login: Login
button_submit: Submit
......
......@@ -1052,3 +1052,4 @@ es:
field_repository_is_default: Main repository
label_copy_attachments: Copy attachments
label_item_position: "%{position}/%{count}"
label_completed_versions: Completed versions
......@@ -1018,3 +1018,4 @@ eu:
field_repository_is_default: Main repository
label_copy_attachments: Copy attachments
label_item_position: "%{position}/%{count}"
label_completed_versions: Completed versions
......@@ -1017,3 +1017,4 @@ fa:
field_repository_is_default: Main repository
label_copy_attachments: Copy attachments
label_item_position: "%{position}/%{count}"
label_completed_versions: Completed versions
......@@ -1036,3 +1036,4 @@ fi:
field_repository_is_default: Main repository
label_copy_attachments: Copy attachments
label_item_position: "%{position}/%{count}"
label_completed_versions: Completed versions
......@@ -814,6 +814,7 @@ fr:
label_export_options: Options d'exportation %{export_format}
label_copy_attachments: Copier les fichiers
label_item_position: %{position} sur %{count}
label_completed_versions: Versions passées
button_login: Connexion
button_submit: Soumettre
......
......@@ -1026,3 +1026,4 @@ gl:
field_repository_is_default: Main repository
label_copy_attachments: Copy attachments
label_item_position: "%{position}/%{count}"
label_completed_versions: Completed versions
......@@ -1020,3 +1020,4 @@ he:
field_repository_is_default: Main repository
label_copy_attachments: Copy attachments
label_item_position: "%{position}/%{count}"
label_completed_versions: Completed versions
......@@ -1021,3 +1021,4 @@ hr:
field_repository_is_default: Main repository
label_copy_attachments: Copy attachments
label_item_position: "%{position}/%{count}"
label_completed_versions: Completed versions
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment