]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/application_helper.rb
Set title/h1 to something sensible when granting/revoking roles
[rails.git] / app / helpers / application_helper.rb
index 9c2b5fd3fe9376854d0d503edce6ef31f13ce29e..b28ab7c1a6eca2dabe18a38d1b90e694bc9e5f6d 100644 (file)
@@ -2,4 +2,12 @@ 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