X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/daa2496024cf0bdc65e58eb6e2802784f411f68b..5cb9f2b022ba1c829ae5f4d980f27c7aad694ff6:/app/views/user_blocks/_blocks.html.erb?ds=inline diff --git a/app/views/user_blocks/_blocks.html.erb b/app/views/user_blocks/_blocks.html.erb index 533853552..12f0c7ced 100644 --- a/app/views/user_blocks/_blocks.html.erb +++ b/app/views/user_blocks/_blocks.html.erb @@ -3,8 +3,8 @@ <% if show_user_name %>
+ <% if @user_blocks_pages.current_page.number > 1 -%> + <%= link_to t('user_block.partial.previous'), params.merge({ :page => @user_blocks_pages.current_page.number - 1 }) %> + <% else -%> + <%= t('user_block.partial.previous') %> + <% end -%> + + | <%= t('user_block.partial.showing_page', :page => @user_blocks_pages.current_page.number) %> | + + <% if @user_blocks_pages.current_page.number < @user_blocks_pages.page_count -%> + <%= link_to t('user_block.partial.next'), params.merge({ :page => @user_blocks_pages.current_page.number + 1 }) %> + <% else -%> + <%= t('user_block.partial.next') %> + <% end -%> +