]> git.openstreetmap.org Git - rails.git/blob - app/helpers/trace_helper.rb
Add frozen_string_literal comments to ruby files
[rails.git] / app / helpers / trace_helper.rb
1 # frozen_string_literal: true
2
3 module TraceHelper
4   def link_to_tag(tag)
5     link_to(tag, :tag => tag, :page => nil)
6   end
7
8   def trace_icon(trace, options = {})
9     options[:class] ||= "trace_image"
10     options[:alt] ||= ""
11
12     image_tag trace_icon_path(trace.user, trace),
13               options.merge(:size => 50)
14   end
15
16   def trace_picture(trace, options = {})
17     options[:class] ||= "trace_image"
18     options[:alt] ||= ""
19
20     image_tag trace_picture_path(trace.user, trace),
21               options.merge(:size => 250)
22   end
23 end