X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e932972a4a3683bbebc99659f9fb8739beb4eba3..60dd5ce6e6e4e3222920fa9d6804c25deae3529c:/app/views/traces/index.html.erb diff --git a/app/views/traces/index.html.erb b/app/views/traces/index.html.erb index 26e52add7..63ade87d7 100644 --- a/app/views/traces/index.html.erb +++ b/app/views/traces/index.html.erb @@ -47,15 +47,14 @@ <% end %> - - @@ -66,7 +65,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 %> @@ -74,7 +77,11 @@
- <%= 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 %> <% else %>

<%= t ".empty_title" %>

<%= t ".empty_upload_html", :upload_link => link_to(t(".upload_new"), new_trace_path),