X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b4c0bfd8fa324a4c9d8b24e8753d134524ea61c7..eef5ac2c7369e2e93ac886037b5925b3c8dd5cb7:/app/helpers/application_helper.rb?ds=sidebyside diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 22a7940eb..b28ab7c1a 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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