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
<h1><%= t ".heading", :name => @trace.name %></h1>
<% end %>
-<%= image_tag trace_picture_path(@trace.user, @trace), :class => "trace_image" %>
+<%= trace_picture(@trace) %>
<%= bootstrap_form_for @trace do |f| %>
<%= f.text_field :name, :disabled => true %>
<% if Settings.status != "gpx_offline" %>
<% if @trace.inserted %>
- <%= image_tag trace_picture_path(@trace.user, @trace), :class => "trace_image" %>
+ <%= trace_picture(@trace) %>
<% else %>
<span class="text-danger"><%= t ".pending" %></span>
<% end %>