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