X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e5f292cf21a5fa72733080a294484e0e4208e0e7..16358a1d39d96a2d04ab410731c9edcdf155606b:/app/views/trace/list.rhtml diff --git a/app/views/trace/list.rhtml b/app/views/trace/list.rhtml index dc3861a54..237fd7ae4 100644 --- a/app/views/trace/list.rhtml +++ b/app/views/trace/list.rhtml @@ -1,26 +1,20 @@

Public GPS Traces

-

- - | -<% if @user %> - <%= link_to 'See just your traces', {:controller => 'trace', :action => 'mine'} %> -<% else %> - <%= link_to 'login', {:controller => 'user', :action => 'login'} %> to see just your traces +<% if @tag %> + Traces filtered by tag <%= @tag %> +

<% end %> - - -

-Showing page -<% if @page > 0 %> - <%= link_to '<<<', {:controller => 'trace', :action => 'list', :page => @page-1}, {:title => 'previous page'} %> +RSS | +<%= link_to 'See just your traces, or upload a trace', {:controller => 'trace', :action => 'mine'} %> +<% if @tag %> + | <%= link_to 'See all traces', {:controller => 'trace', :action => 'list'} %> <% end %> -<%= @page %> -<%= link_to '>>>', {:controller => 'trace', :action => 'list', :page => @page+1}, {:title => 'next page'} %> +
+
-(<%= 1+(@page * 20)%>-<%= (1+@page) * 20 %>) +<%= render :partial => 'trace_paging_nav' %> @@ -29,3 +23,6 @@ Showing page <%= render :partial => 'trace', :collection => @traces %>
+<%= render :partial => 'trace_paging_nav' %> + +<%= render :partial => 'trace_optionals' %>