X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/6f73468f188630be503cdb19b00be7d1ea888785..5a2ffa227c99a271366735fa43a02ef93b99a673:/app/views/trace/_trace_form.html.erb diff --git a/app/views/trace/_trace_form.html.erb b/app/views/trace/_trace_form.html.erb index 3d93b65e8..c6e755b1e 100644 --- a/app/views/trace/_trace_form.html.erb +++ b/app/views/trace/_trace_form.html.erb @@ -1,5 +1,5 @@ -<% if @user.traces.count(:conditions => ["inserted=?", false]) > 4 %> -

<%= t'trace.trace_header.traces_waiting', :count => @user.traces.count(:conditions => ["inserted=?", false]) %>

+<% if @target_user.traces.count(:conditions => ["inserted=?", false]) > 4 %> +

<%= t'trace.trace_header.traces_waiting', :count => @target_user.traces.count(:conditions => ["inserted=?", false]) %>

<% end %> <% form_for :trace, @trace, :url => { :action => "create" }, :html => { :multipart => true } do |f| %>