]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/trace/list.rhtml
Potlatch on Rails, first working version
[rails.git] / app / views / trace / list.rhtml
index 6ff6b34a632054e926f1faef7f17d74108563a81..4ca59dabecbd9c3d81c585fcf171f0191e65ffbb 100644 (file)
@@ -1,7 +1,24 @@
 <h1>Public GPS Traces</h1>
 <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'} %>
 <% 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 %>
 <% 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>
 
 <table id="keyvalue" cellpadding="3">
   <tr>
@@ -10,3 +27,6 @@
   </tr>
   <%= render :partial => 'trace', :collection => @traces %>
 </table>
   </tr>
   <%= render :partial => 'trace', :collection => @traces %>
 </table>
+<%= render (:partial => 'trace_paging_nav') %>
+
+<%= render (:partial => 'trace_optionals') %>