1 module ApplicationHelper
3 return sanitize(auto_link(simple_format(text), :urls))
7 return link_to(image_tag("RSS.gif", :size => "16x16", :border => 0), Hash[*args], { :class => "rsssmall" });
10 def atom_link_to(*args)
11 return link_to(image_tag("RSS.gif", :size => "16x16", :border => 0), Hash[*args], { :class => "rsssmall" });
14 def javascript_strings
17 js << "<script type='text/javascript'>\n"
18 js << "i18n_strings = new Array();\n"
19 js << javascript_strings_for_key("javascripts")
27 def javascript_strings_for_key(key)
29 value = t(key, :locale => "en")
31 if value.is_a?(String)
32 js << "i18n_strings['#{key}'] = '" << escape_javascript(t(key)) << "';\n"
35 js << javascript_strings_for_key("#{key}.#{k}")