]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/trace_helper.rb
Move admin users list to its own controller
[rails.git] / app / helpers / trace_helper.rb
index db1f8357ea39c30339491c1ca1cb04ca7466fbf0..fbbeb3dffb48e376c1aeef5053ef39c166b2950b 100644 (file)
@@ -10,4 +10,12 @@ module TraceHelper
     image_tag trace_icon_path(trace.user, trace),
               options.merge(:size => 50)
   end
     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
 end