]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/application_helper.rb
Fix compatible_language_from in the http_accept_language plugin to
[rails.git] / app / helpers / application_helper.rb
index 22a7940eb213fec161352153800c9c6948c8b43c..b28ab7c1a6eca2dabe18a38d1b90e694bc9e5f6d 100644 (file)
@@ -1,3 +1,13 @@
-# Methods added to this helper will be available to all templates in the application.
 module ApplicationHelper
+  def htmlize(text)
+    return sanitize(auto_link(simple_format(text), :urls))
+  end
+
+  def rss_link_to(*args)
+    return link_to(image_tag("RSS.gif", :size => "16x16", :border => 0), Hash[*args], { :class => "rsssmall" });
+  end
+
+  def atom_link_to(*args)
+    return link_to(image_tag("RSS.gif", :size => "16x16", :border => 0), Hash[*args], { :class => "rsssmall" });
+  end
 end