X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a780a7456f34e13b51f198e8923ab6aedfb5d333..e143726f1a1d38cb458c75419510ed38fc6d62db:/app/views/traces/index.html.erb diff --git a/app/views/traces/index.html.erb b/app/views/traces/index.html.erb index 26e52add7..ddbaa9e94 100644 --- a/app/views/traces/index.html.erb +++ b/app/views/traces/index.html.erb @@ -66,7 +66,11 @@ <% end %> <% if @traces.size > 0 %> - <%= render "trace_paging_nav", :older_traces => @older_traces, :newer_traces => @newer_traces, :traces => @traces, :params => @params %> + <%= render "shared/pagination", + :newer_key => "traces.trace_paging_nav.newer", + :older_key => "traces.trace_paging_nav.older", + :newer_id => @newer_traces && @traces.first.id, + :older_id => @older_traces && @traces.last.id %>
<%= t ".empty_upload_html", :upload_link => link_to(t(".upload_new"), new_trace_path),