]> git.openstreetmap.org Git - rails.git/blob - app/helpers/application_helper.rb
fixing interpolation error with per language rss feeds that was introduced in [16903]
[rails.git] / app / helpers / application_helper.rb
1 module ApplicationHelper
2   def htmlize(text)
3     return sanitize(auto_link(simple_format(text), :urls))
4   end
5
6   def rss_link_to(*args)
7     return link_to(image_tag("RSS.gif", :size => "16x16", :border => 0), Hash[*args], { :class => "rsssmall" });
8   end
9
10   def atom_link_to(*args)
11     return link_to(image_tag("RSS.gif", :size => "16x16", :border => 0), Hash[*args], { :class => "rsssmall" });
12   end
13 end