]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/trace/mine.rhtml
API 0.4 Updates - work on traces pages + pagination, edit tab, some API testing
[rails.git] / app / views / trace / mine.rhtml
index 997e2c297821670353650da22154bf2e41cd05d7..c18615f47071e2c13e091ad1e0d6e7a70cfef092 100644 (file)
@@ -1,6 +1,8 @@
 <h1>Your GPS Traces</h1>
 
-<%= link_to 'see all traces', {:controller => 'trace', :action => 'list'} %><br /><br />
+<br />
+
+<%= link_to 'See all traces', {:controller => 'trace', :action => 'list'} %><br /><br />
 
 <% if @user %>
 <%= start_form_tag({:action => 'create'}, :multipart => true) %>
 
 <%= 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') %>