X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/706454ae35b644c619b9cd332b3c97133054a397..bd1f568c0a91d8d58b05912fdae1a6912edd3e62:/app/views/notes/_notes_paging_nav.html.erb?ds=sidebyside diff --git a/app/views/notes/_notes_paging_nav.html.erb b/app/views/notes/_notes_paging_nav.html.erb index f9e51b5ae..207f88779 100644 --- a/app/views/notes/_notes_paging_nav.html.erb +++ b/app/views/notes/_notes_paging_nav.html.erb @@ -1,17 +1,17 @@
<% if @page > 1 %> -<%= link_to t('changeset.changeset_paging_nav.previous'), params.merge({ :page => @page - 1 }) %> +<%= link_to t("changesets.changeset_paging_nav.previous"), @params.merge(:page => @page - 1) %> <% else %> -<%= t('changeset.changeset_paging_nav.previous') %> +<%= t("changesets.changeset_paging_nav.previous") %> <% end %> -| <%= t('changeset.changeset_paging_nav.showing_page', :page => @page) %> | +| <%= t("changesets.changeset_paging_nav.showing_page", :page => @page) %> | -<% if @notes.size <= @page_size %> -<%= t('changeset.changeset_paging_nav.next') %> +<% if @notes.size < @page_size %> +<%= t("changesets.changeset_paging_nav.next") %> <% else %> -<%= link_to t('changeset.changeset_paging_nav.next'), params.merge({ :page => @page + 1 }) %> +<%= link_to t("changesets.changeset_paging_nav.next"), @params.merge(:page => @page + 1) %> <% end %>