<h1>Your GPS Traces</h1>
-<%= link_to 'see all traces', {:controller => 'trace', :action => 'list'} %><br /><br />
+<% if @tag %>
+ Traces filtered by tag <b><%= @tag %></b>
+ <br/><br/>
+<% end %>
+<%= link_to 'See all traces', {:controller => 'trace', :action => 'list'} %>
+<% if @tag %>
+ | <%= link_to 'See all your traces', {:controller => 'trace', :action => 'mine'} %>
+<% end %>
+
+<br />
+<br />
<% if @user %>
+
<%= start_form_tag({:action => 'create'}, :multipart => true) %>
<table>
<table>
</td></tr>
</table>
-<br>
-
<%= end_form_tag %>
+<%= render (:partial => 'trace_paging_nav') %>
<table id="keyvalue" cellpadding="3">
<tr>
<th></th>
<th></th>
</tr>
- <%= render :partial => 'trace', :collection => @traces %>
+ <%= render (:partial => 'trace', :collection => @traces) unless @traces.nil? %>
</table>
+<%= render (:partial => 'trace_paging_nav') %>
<% end %>
-
-
-
+<%= render (:partial => 'trace_optionals') %>