X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/62e7006a2131eef9f7569e8c25207b3777bc3d74..f2211a7ed9d55203d44081c6473d4077d66e9535:/app/views/trace/_trace_paging_nav.html.erb diff --git a/app/views/trace/_trace_paging_nav.html.erb b/app/views/trace/_trace_paging_nav.html.erb index c338a1469..dea4271d2 100644 --- a/app/views/trace/_trace_paging_nav.html.erb +++ b/app/views/trace/_trace_paging_nav.html.erb @@ -1,17 +1,18 @@

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