Merge branch 'pull/5035'
This commit is contained in:
commit
bbd6140f4b
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
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<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 %>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<% 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 %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue