From 15e64474e4f16e36a5cfae9d1baa7be71da9ddc1 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 25 Apr 2008 09:04:56 +0000 Subject: [PATCH] Unbreak Richard's warning messages. Closes #864. --- app/views/trace/_trace_header.rhtml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/app/views/trace/_trace_header.rhtml b/app/views/trace/_trace_header.rhtml index 8fdd8de7e..b4ef3f612 100644 --- a/app/views/trace/_trace_header.rhtml +++ b/app/views/trace/_trace_header.rhtml @@ -15,12 +15,10 @@ <% 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 %> +<% if @user and @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 %> -- 2.43.2