Adds rel='nofollow' attribute to other formats download links (#2491).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2334 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f1aa0df326
commit
32d4378198
|
@ -25,7 +25,7 @@ module Redmine
|
||||||
def link_to(name, options={})
|
def link_to(name, options={})
|
||||||
url = { :format => name.to_s.downcase }.merge(options.delete(:url) || {})
|
url = { :format => name.to_s.downcase }.merge(options.delete(:url) || {})
|
||||||
caption = options.delete(:caption) || name
|
caption = options.delete(:caption) || name
|
||||||
html_options = { :class => name.to_s.downcase }.merge(options)
|
html_options = { :class => name.to_s.downcase, :rel => 'nofollow' }.merge(options)
|
||||||
@view.content_tag('span', @view.link_to(caption, url, html_options))
|
@view.content_tag('span', @view.link_to(caption, url, html_options))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue