X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a011d152a81d43743f147235b0bc241a2a0e594b..d57755b737cbb38a590b0e017a4b5c6c661aea62:/app/views/trace/_trace_paging_nav.html.erb?ds=sidebyside diff --git a/app/views/trace/_trace_paging_nav.html.erb b/app/views/trace/_trace_paging_nav.html.erb index 724efdd74..669c1fe70 100644 --- a/app/views/trace/_trace_paging_nav.html.erb +++ b/app/views/trace/_trace_paging_nav.html.erb @@ -1,15 +1,18 @@

- <% if @page > 1 %> - <%= link_to t('trace.trace_paging_nav.previous'), params.merge({ :page => @page - 1 }) %> - <% else %> - <%= t('trace.trace_paging_nav.previous') %> - <% end %> - | <%= t('trace.trace_paging_nav.showing_page', :page => @page) %> | +<% if @traces.size > 1 %> +<% if @page > 1 %> +<%= link_to t('trace.trace_paging_nav.previous'), params.merge({ :page => @page - 1 }) %> +<% else %> +<%= t('trace.trace_paging_nav.previous') %> +<% end %> - <% if @traces.size < @page_size %> - <%= t('trace.trace_paging_nav.next') %> - <% else %> - <%= link_to t('trace.trace_paging_nav.next'), params.merge({ :page => @page + 1 }) %> - <% end %> +| <%= t('trace.trace_paging_nav.showing_page', :page => @page) %> | + +<% if @traces.size < @page_size %> +<%= t('trace.trace_paging_nav.next') %> +<% else %> +<%= link_to t('trace.trace_paging_nav.next'), params.merge({ :page => @page + 1 }) %> +<% end %> +<% end %>