X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/840a4020319e5444af979cf9c0ab4bac1b3c6134..4f15f5926792f5ba2b0efc39792c75830eb82199:/app/views/trace/_trace_header.rhtml diff --git a/app/views/trace/_trace_header.rhtml b/app/views/trace/_trace_header.rhtml index c89a2a390..b4ef3f612 100644 --- a/app/views/trace/_trace_header.rhtml +++ b/app/views/trace/_trace_header.rhtml @@ -1,7 +1,9 @@

<%= h(@title) %>

+<%= auto_discovery_link_tag :atom, :action => 'georss', :display_name => @display_name, :tag => @tag %> +

- 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 +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 %>