Trace picture with fixed size

This commit is contained in:
mmd-osm 2024-07-31 21:31:17 +02:00
parent 869d86a31f
commit b4952ff7f2
3 changed files with 10 additions and 2 deletions

View file

@ -10,4 +10,12 @@ module TraceHelper
image_tag trace_icon_path(trace.user, trace),
options.merge(:size => 50)
end
def trace_picture(trace, options = {})
options[:class] ||= "trace_image"
options[:alt] ||= ""
image_tag trace_picture_path(trace.user, trace),
options.merge(:size => 250)
end
end