X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/85d8a2d17702b73620cbc3b907fd84fdf6ec1545..c8972a0859ac1e8ba3598638c58e33d3f21ca059:/app/views/trace/list.rhtml
diff --git a/app/views/trace/list.rhtml b/app/views/trace/list.rhtml
index dce98136f..4ca59dabe 100644
--- a/app/views/trace/list.rhtml
+++ b/app/views/trace/list.rhtml
@@ -1,26 +1,24 @@
Public GPS Traces
-
-
- |
+<% if @tag %>
+ Traces filtered by tag <%= @tag %>
+
+<% end %>
+ |
<% 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
<% end %>
-
-
-
-Showing page
-<% if @page > 0 %>
- <%= link_to '<<<', {:controller => 'trace', :action => 'list', :page => @page-1}, {:title => 'previous page'} %>
+<% 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 +27,6 @@ Showing page
<%= render :partial => 'trace', :collection => @traces %>
+<%= render (:partial => 'trace_paging_nav') %>
+
+<%= render (:partial => 'trace_optionals') %>