X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/228ab23ce16338e281e609d9355c982cd4085c42..51994d8999a5502940046636395c6ff942784f71:/app/views/traces/index.html.erb diff --git a/app/views/traces/index.html.erb b/app/views/traces/index.html.erb index ddbaa9e94..3f1e0f0d5 100644 --- a/app/views/traces/index.html.erb +++ b/app/views/traces/index.html.erb @@ -33,7 +33,7 @@ <%= link_to t(".my_traces"), { :action => "mine" }, { :class => "nav-link active" } %> <% else %> - + @@ -43,19 +43,18 @@ <% end %> <% end %> - - @@ -69,8 +68,8 @@ <%= 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 %> + :newer_id => @newer_traces_id, + :older_id => @older_traces_id %> @@ -81,8 +80,8 @@ <%= 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 %> + :newer_id => @newer_traces_id, + :older_id => @older_traces_id %> <% else %>

<%= t ".empty_title" %>

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