Trace picture with fixed size
This commit is contained in:
parent
869d86a31f
commit
b4952ff7f2
3 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue