1 # Methods added to this helper will be available to all templates in the application.
2 module ApplicationHelper
3 def form_label(obj, meth, str)
4 '<label for="%s_%s">%s</label>' % [ obj, meth, str ]
9 <script type="text/javascript">
11 Field.activate('#{field_name}');
20 #{link_to user.display_name, user_url(user), :class => "author url fn nickname"}
25 def nice_permalink_url(issue)
26 nice_permalink_route_url( :year => issue.year, :month => issue.month, :day => issue.day, :permalink => issue.permalink.link_name )
29 def nice_permalink_path(issue)
30 nice_permalink_route_path( :year => issue.year, :month => issue.month, :day => issue.day, :permalink => issue.permalink.link_name )
33 # FIXME: we'll probably need to do a bit more sanitizing than this later
34 def format_description(desc)
35 auto_link(simple_format(desc), :all, :target => '_blank')