1 # frozen_string_literal: true
4 def trace_image(trace, animated: false, only_path: true, **options)
5 args = [trace.user, trace, { :only_path => only_path }]
6 src = animated ? trace_picture_url(*args) : trace_icon_url(*args)
7 image_tag(src, { :class => "trace_image", :alt => "" }.merge(options))
11 link_to(tag, :tag => tag, :page => nil)
14 def trace_icon(trace, options = {})
15 trace_image(trace, :size => 50, **options)
18 def trace_picture(trace, options = {})
19 trace_image(trace, :animated => true, :size => 250, **options)