]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/trace/list.html.erb
Navigation changes to the GPX traces page
[rails.git] / app / views / trace / list.html.erb
index 06c6fb9f1c194f3b692288bc3e8d19b07f756dcc..3003df98a58d661a2c9651e7efa03f396759b915 100644 (file)
   <% end %>
 </p>
 
-<% if @traces.size > 1 %>
+<% if @traces.size > 0 %>
   <%= render :partial => 'trace_paging_nav' %>
-<% else %>
-  <%= t('trace.list.empty') %> <%= link_to t('trace.list.upload_new'), :controller => 'trace', :action => 'list', :display_name => nil, :tag => nil, :page => nil %> <%= raw t('trace.list.learn_more') %>
-<% end %>
 
-<table id="trace_list" cellpadding="3">
-  <tr>
-    <th></th>
-    <th></th>
-  </tr>
-  <%= render :partial => 'trace', :collection => @traces unless @traces.nil? %>
-</table>
+  <table id="trace_list" cellpadding="3">
+    <tr>
+      <th></th>
+      <th></th>
+    </tr>
+    <%= render :partial => 'trace', :collection => @traces unless @traces.nil? %>
+  </table>
 
-<% if @traces.size > 1 %>
   <%= render :partial => 'trace_paging_nav' %>
+<% else %>
+  <%= t 'trace.list.empty_html', :upload_link => link_to(t('trace.list.upload_new'), trace_create_path) %>
 <% end %>
 
 <%= render :partial => 'trace_optionals' %>