X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ed54379218d21b9bd52933903e8cb504a15dfe7e..68b265fb153b85868bc1b207e9d5a6a26c2b551e:/app/views/trace/list.html.erb
diff --git a/app/views/trace/list.html.erb b/app/views/trace/list.html.erb
index 2475b5ad2..dae4c89f6 100644
--- a/app/views/trace/list.html.erb
+++ b/app/views/trace/list.html.erb
@@ -1,35 +1,45 @@
-
<%= h(@title) %>
+<% content_for :heading do %>
+ <%= h(@title) %>
+
+ - <%= t('trace.list.description') %>
+ - <%= rss_link_to :action => 'georss', :display_name => @display_name, :tag => @tag %>
+ - <%= link_to t('trace.trace_header.upload_trace'), :action => 'create' %>
+ <% if @tag %>
+ - <%= link_to t('trace.trace_header.see_all_traces'), :controller => 'trace', :action => 'list', :display_name => nil, :tag => nil, :page => nil %>
+ - <%= link_to t('trace.trace_header.see_your_traces'), :action => 'mine', :tag => nil, :page => nil %>
+ <% else %>
+ <% if @display_name %>
+ - <%= link_to t('trace.trace_header.see_all_traces'), :controller => 'trace', :action => 'list', :display_name => nil, :tag => nil, :page => nil %>
+ <% end %>
+ <%= unless_user(@target_user, :li) do %>
+ <%= link_to t('trace.trace_header.see_your_traces'), :action => 'mine', :tag => nil, :page => nil %>
+ <% end %>
+ <% end %>
+
+<% end %>
<% content_for :head do %>
<%= auto_discovery_link_tag :atom, :action => 'georss', :display_name => @display_name, :tag => @tag %>
<% end %>
-
- <%= rss_link_to :action => 'georss', :display_name => @display_name, :tag => @tag %>
- | <%= link_to t('trace.trace_header.upload_trace'), :action => 'create' %>
- <% if @tag %>
- | <%= link_to t('trace.trace_header.see_all_traces'), :controller => 'trace', :action => 'list', :display_name => nil, :tag => nil, :page => nil %>
- | <%= link_to t('trace.trace_header.see_your_traces'), :action => 'mine', :tag => nil, :page => nil %>
- <% else %>
- <% if @display_name %>
- | <%= link_to t('trace.trace_header.see_all_traces'), :controller => 'trace', :action => 'list', :display_name => nil, :tag => nil, :page => nil %>
- <% end %>
- <%= unless_user(@target_user, :span) do %>
- | <%= link_to t('trace.trace_header.see_your_traces'), :action => 'mine', :tag => nil, :page => nil %>
- <% end %>
- <% end %>
-
-
-<%= render :partial => 'trace_paging_nav' %>
+<% if @traces.size > 0 %>
+ <%= render :partial => 'trace_paging_nav' %>
-
-
- |
- |
-
- <%= render :partial => 'trace', :collection => @traces unless @traces.nil? %>
-
+
+
+
+ |
+ |
+
+
+
+ <%= render :partial => 'trace', :collection => @traces unless @traces.nil? %>
+
+
-<%= render :partial => 'trace_paging_nav' %>
+ <%= render :partial => 'trace_paging_nav' %>
+<% else %>
+ <%= t 'trace.list.empty_html', :upload_link => trace_create_path %>
+<% end %>
<%= render :partial => 'trace_optionals' %>