##// END OF EJS Templates
Adds rel='nofollow' attribute to other formats download links (#2491)....
Jean-Philippe Lang -
r2332:32d4378198b8
parent child
Show More
@@ -25,7 +25,7 module Redmine
25 def link_to(name, options={})
25 def link_to(name, options={})
26 url = { :format => name.to_s.downcase }.merge(options.delete(:url) || {})
26 url = { :format => name.to_s.downcase }.merge(options.delete(:url) || {})
27 caption = options.delete(:caption) || name
27 caption = options.delete(:caption) || name
28 html_options = { :class => name.to_s.downcase }.merge(options)
28 html_options = { :class => name.to_s.downcase, :rel => 'nofollow' }.merge(options)
29 @view.content_tag('span', @view.link_to(caption, url, html_options))
29 @view.content_tag('span', @view.link_to(caption, url, html_options))
30 end
30 end
31 end
31 end
General Comments 0
You need to be logged in to leave comments. Login now