]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/application_helper.rb
Don't ask the backend directly for the available locales - just ask
[rails.git] / app / helpers / application_helper.rb
index 22a7940eb213fec161352153800c9c6948c8b43c..3119c8435469003a9433793005306b4be504df70 100644 (file)
@@ -1,3 +1,9 @@
-# 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
 end