X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/02628bed1e7b5c2656bc68076403467e92462b4f..acbc99ac16103e1be5c1ef1841794f259e3b6a03:/app/views/browse/_navigation.html.erb diff --git a/app/views/browse/_navigation.html.erb b/app/views/browse/_navigation.html.erb index b125ac75f..ed483d8ec 100644 --- a/app/views/browse/_navigation.html.erb +++ b/app/views/browse/_navigation.html.erb @@ -1,36 +1,40 @@ -
+
<% if @next_by_user or @prev_by_user %> - <% if @prev_by_user %> - <%= link_to t('browse.changeset_navigation.user.prev', :id => @prev_by_user.id.to_s), - { :id => @prev_by_user.id }, - { :title => t('browse.changeset_navigation.user.prev_tooltip', :user => @prev_by_user.user.display_name) } %> - | - <% end %> - <%= - user = (@prev_by_user || @next_by_user).user.display_name - link_to(t('browse.changeset_navigation.user.name', :user => h(user)), - { :controller => "changeset", :action => "list", :display_name => user }, - { :title => t('browse.changeset_navigation.user.name_tooltip', :user => h(user)) }) - %> - <% if @next_by_user %> - | - <%= link_to t('browse.changeset_navigation.user.next', :id => @next_by_user.id.to_s), - { :id => @next_by_user.id }, - { :title => t('browse.changeset_navigation.user.next_tooltip', :user => @next_by_user.user.display_name) } %> - <% end %> + + <% if @prev_by_user %> + <%= link_to t('browse.changeset_navigation.paging.user.prev', :id => @prev_by_user.id.to_s), + { :id => @prev_by_user.id }, + { :title => t('browse.changeset_navigation.user.prev_tooltip', :user => @prev_by_user.user.display_name) } %> + | + <% end %> + <%= + user = (@prev_by_user || @next_by_user).user.display_name + link_to h(user), + { :controller => "changeset", :action => "list", :display_name => user }, + { :title => t('browse.changeset_navigation.user.name_tooltip', :user => h(user)) } + %> + <% if @next_by_user %> + | + <%= link_to t('browse.changeset_navigation.paging.user.next', :id => @next_by_user.id.to_s), + { :id => @next_by_user.id }, + { :title => t('browse.changeset_navigation.user.next_tooltip', :user => @next_by_user.user.display_name) } %> + <% end %> +
<% end %> - <% if @prev %> - <%= link_to t('browse.changeset_navigation.all.prev', :id => @prev.id.to_s), - { :id => @prev.id }, - { :title => t('browse.changeset_navigation.all.prev_tooltip') } %> - <% end %> - <% if @prev and @next %> - | - <% end %> - <% if @next %> - <%= link_to t('browse.changeset_navigation.all.next', :id => @next.id.to_s), - { :id => @next.id }, - { :title => t('browse.changeset_navigation.all.next_tooltip') } %> - <% end %> + + <% if @prev %> + <%= link_to t('browse.changeset_navigation.paging.all.prev', :id => @prev.id.to_s), + { :id => @prev.id }, + { :title => t('browse.changeset_navigation.all.prev_tooltip') } %> + <% end %> + <% if @prev and @next %> + | + <% end %> + <% if @next %> + <%= link_to t('browse.changeset_navigation.paging.all.next', :id => @next.id.to_s), + { :id => @next.id }, + { :title => t('browse.changeset_navigation.all.next_tooltip') } %> + <% end %> +