From 1b591df0bc58a469aa4b5ffdc7e2f4914a42844a Mon Sep 17 00:00:00 2001 From: Richard Fairhurst Date: Wed, 23 Apr 2008 11:57:01 +0000 Subject: [PATCH 1/1] warn if user tries to upload 8bn traces at once --- app/views/trace/_trace_header.rhtml | 8 ++++++++ 1 file changed, 8 insertions(+) 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 %>

-- 2.43.2