]> git.openstreetmap.org Git - rails.git/blob - app/helpers/trace_helper.rb
Merge branch 'pull/5030'
[rails.git] / app / helpers / trace_helper.rb
1 module TraceHelper
2   def link_to_tag(tag)
3     link_to(tag, :tag => tag, :page => nil)
4   end
5
6   def trace_icon(trace, options = {})
7     options[:class] ||= "trace_image"
8     options[:alt] ||= ""
9
10     image_tag trace_icon_path(trace.user, trace),
11               options.merge(:size => 50)
12   end
13 end