From: Richard Fairhurst Date: Wed, 23 Apr 2008 11:57:01 +0000 (+0000) Subject: warn if user tries to upload 8bn traces at once X-Git-Tag: live~7822 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/1b591df0bc58a469aa4b5ffdc7e2f4914a42844a?hp=cbb59310d3fb610aedd0f76beb6dc374bd3cb7e0;ds=sidebyside warn if user tries to upload 8bn traces at once --- diff --git a/app/views/trace/_trace_header.rhtml b/app/views/trace/_trace_header.rhtml index 179b79c32..e84d46781 100644 --- a/app/views/trace/_trace_header.rhtml +++ b/app/views/trace/_trace_header.rhtml @@ -10,6 +10,14 @@ <% if @tag and @user and @user.display_name == @display_name %> | <%= link_to 'See all your traces', :controller => 'trace', :action => 'mine' %> <% end %> +<% if @display_name %> +<% if @user.traces.count(:conditions => "inserted=0")>4 %> +

+You have <%= @user.traces.count(:conditions => "inserted=0") %> traces +waiting for upload. Please consider waiting for these to finish before +uploading any more, so as not to block the queue for other users. +<% end %> +<% end %>