summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-01-29 13:54:44 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-01-29 13:54:44 +0000
commit32d4378198b83a10bab53c8e7cee2e4ec8adb818 (patch)
tree60d90b0fa5d4a30881b9534e1c485eaa27056805 /lib
parentf1aa0df32666931f58b34a21d2e7acf43271fc7a (diff)
downloadredmine-32d4378198b83a10bab53c8e7cee2e4ec8adb818.tar.gz
redmine-32d4378198b83a10bab53c8e7cee2e4ec8adb818.zip
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
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/views/other_formats_builder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/views/other_formats_builder.rb b/lib/redmine/views/other_formats_builder.rb
index 1f5751691..c3c89b24d 100644
--- a/lib/redmine/views/other_formats_builder.rb
+++ b/lib/redmine/views/other_formats_builder.rb
@@ -25,7 +25,7 @@ module Redmine
def link_to(name, options={})
url = { :format => name.to_s.downcase }.merge(options.delete(:url) || {})
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))
end
end