]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/trace/list.rhtml
Make next and previous links on user/XXX/traces work. Fixes #501.
[rails.git] / app / views / trace / list.rhtml
index ce2e76349570f4b7df3adc27b333c820410a31db..d93e32a5b6f359e186d5155263896d85c299388a 100644 (file)
@@ -1,6 +1,32 @@
 <h1>Public GPS Traces</h1>
+
+<% if @tag %>
+ Traces filtered by tag <b><%= @tag %></b>
+ <br/><br/>
+<% end %>
+<span class="rsssmall"><a href="<%= url_for :controller => 'trace', :action => 'georss' %>"><img src="/images/RSS.gif" border="0"></a></span> | 
 <% if @user %>
-  <%= link_to 'See just your traces', {:controller => 'trace', :action => 'mine'} %>
+  <%= link_to 'See just your traces, or upload a trace', {:controller => 'trace', :action => 'mine'} %>
+<% else %>
+  <%= link_to 'login', {:controller => 'user', :action => 'login', :next_controller => 'traces', :next_action => 'mine'} %> to upload a trace or see yours alone
 <% end %>
+<% if @tag %>
+ | <%= link_to 'See all traces', {:controller => 'trace', :action => 'list'} %>
+<% end %>
+
+
+<br />
+<br />
+
+<%= render :partial => 'trace_paging_nav' %>
+
+<table id="keyvalue" cellpadding="3">
+  <tr>
+    <th></th>
+    <th></th>
+  </tr>
+  <%= render :partial => 'trace', :collection => @traces %>
+</table>
+<%= render :partial => 'trace_paging_nav' %>
 
-<%= render :partial => 'trace', :collection => @traces %>
+<%= render :partial => 'trace_optionals' %>