]> git.openstreetmap.org Git - rails.git/commitdiff
Unbreak Richard's warning messages. Closes #864.
authorTom Hughes <tom@compton.nu>
Fri, 25 Apr 2008 09:04:56 +0000 (09:04 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 25 Apr 2008 09:04:56 +0000 (09:04 +0000)
app/views/trace/_trace_header.rhtml

index 8fdd8de7eff629db2d47ae3362573d115a73db0e..b4ef3f61273c125b1396f65618173e696f47e4de 100644 (file)
   <% end %>
 </p>
 
-<% if @display_name %>
-  <% if @user.traces.count(:conditions => "inserted=0") > 4 %>
-    <p>
-      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.
-    </p>
-  <% end %>
+<% if @user and @user.traces.count(:conditions => "inserted=0") > 4 %>
+  <p>
+    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.
+  </p>
 <% end %>