]> git.openstreetmap.org Git - rails.git/blob - app/views/trace/_trace_header.rhtml
Updated comment to reflect implementation.
[rails.git] / app / views / trace / _trace_header.rhtml
1 <h1><%= h(@title) %></h1>
2
3 <%= auto_discovery_link_tag :atom, :action => 'georss', :display_name => @display_name, :tag => @tag %>
4
5 <p>
6   <%= rss_link_to :action => 'georss', :display_name => @display_name, :tag => @tag %>
7   <% if @user.nil? or @display_name.nil? or @user.display_name != @display_name %>
8     | <%= link_to 'See just your traces, or upload a trace', :action => 'mine' %>
9   <% end %>
10   <% if @tag or @display_name %>
11     | <%= link_to 'See all traces', :controller => 'trace', :action => 'list' %>
12   <% end %>
13   <% if @tag and @user and @user.display_name == @display_name %>
14     | <%= link_to 'See all your traces', :controller => 'trace', :action => 'mine' %>
15   <% end %>
16 </p>
17
18 <% if @user and @user.traces.count(:conditions => "inserted=0") > 4 %>
19   <p>
20     You have <%= @user.traces.count(:conditions => "inserted=0") %> traces 
21     waiting for upload. Please consider waiting for these to finish before 
22     uploading any more, so as not to block the queue for other users.
23   </p>
24 <% end %>