X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/fb1467a94487cfdfcb19e4f88e05be7aa88096f0..e5f292cf21a5fa72733080a294484e0e4208e0e7:/app/views/trace/list.rhtml
diff --git a/app/views/trace/list.rhtml b/app/views/trace/list.rhtml
index ce2e76349..dc3861a54 100644
--- a/app/views/trace/list.rhtml
+++ b/app/views/trace/list.rhtml
@@ -1,6 +1,31 @@
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
+<% end %>
+
+
+
+Showing page
+<% if @page > 0 %>
+ <%= link_to '<<<', {:controller => 'trace', :action => 'list', :page => @page-1}, {:title => 'previous page'} %>
<% end %>
-<%= render :partial => 'trace', :collection => @traces %>
+<%= @page %>
+
+<%= link_to '>>>', {:controller => 'trace', :action => 'list', :page => @page+1}, {:title => 'next page'} %>
+
+(<%= 1+(@page * 20)%>-<%= (1+@page) * 20 %>)
+
+
+
+ |
+ |
+
+ <%= render :partial => 'trace', :collection => @traces %>
+