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