]> git.openstreetmap.org Git - rails.git/blob - app/helpers/trace_helper.rb
Merge remote-tracking branch 'upstream/pull/5099'
[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
14   def trace_picture(trace, options = {})
15     options[:class] ||= "trace_image"
16     options[:alt] ||= ""
17
18     image_tag trace_picture_path(trace.user, trace),
19               options.merge(:size => 250)
20   end
21 end