A wiki page can now be attached to each version.
For that, edit the version and set the wiki page name (project wiki must be enabled). The wiki page content is displayed for each version on the roadmap view. git-svn-id: http://redmine.rubyforge.org/svn/trunk@564 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -37,6 +37,13 @@ class Version < ActiveRecord::Base
|
||||
effective_date && effective_date <= Date.today
|
||||
end
|
||||
|
||||
def wiki_page
|
||||
if project.wiki && !wiki_page_title.blank?
|
||||
@wiki_page ||= project.wiki.find_page(wiki_page_title)
|
||||
end
|
||||
@wiki_page
|
||||
end
|
||||
|
||||
# Versions are sorted by effective_date
|
||||
# Those with no effective_date are at the end, sorted by name
|
||||
def <=>(version)
|
||||
|
||||
Reference in New Issue
Block a user