mirror of
https://github.com/redmine/redmine.git
synced 2025-11-12 00:06:01 +01:00
Moved #link_to_version to ApplicationHelper (#17431).
git-svn-id: http://svn.redmine.org/redmine/trunk@13322 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -157,6 +157,12 @@ module ApplicationHelper
|
||||
end
|
||||
end
|
||||
|
||||
# Generates a link to a version
|
||||
def link_to_version(version, options = {})
|
||||
return '' unless version && version.is_a?(Version)
|
||||
link_to_if version.visible?, format_version_name(version), version_path(version), options
|
||||
end
|
||||
|
||||
# Helper that formats object for html or text rendering
|
||||
def format_object(object, html=true, &block)
|
||||
if block_given?
|
||||
|
||||
Reference in New Issue
Block a user