X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/840a4020319e5444af979cf9c0ab4bac1b3c6134..77303f1e5ac466d59129f6cf083e5f6d6ac09288:/app/views/trace/_trace_header.rhtml diff --git a/app/views/trace/_trace_header.rhtml b/app/views/trace/_trace_header.rhtml index c89a2a390..cab6f7124 100644 --- a/app/views/trace/_trace_header.rhtml +++ b/app/views/trace/_trace_header.rhtml @@ -1,7 +1,11 @@

<%= h(@title) %>

+<% content_for :head do %> +<%= auto_discovery_link_tag :atom, :action => 'georss', :display_name => @display_name, :tag => @tag %> +<% end %> +

- RSS + <%= rss_link_to :action => 'georss', :display_name => @display_name, :tag => @tag %> <% if @user.nil? or @display_name.nil? or @user.display_name != @display_name %> | <%= link_to 'See just your traces, or upload a trace', :action => 'mine' %> <% end %> @@ -13,12 +17,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=?", false]) > 4 %> +

+ You have <%= @user.traces.count(:conditions => ["inserted=?", false]) %> 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 %>