X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/64fb530581ffd21e2522e70e8a2d4c46d666f760..658a34714f089c8cd9d8556e4dcea0cb708fa0ed:/app/views/browse/_navigation.html.erb?ds=sidebyside diff --git a/app/views/browse/_navigation.html.erb b/app/views/browse/_navigation.html.erb index 88812c2bb..f08e09c04 100644 --- a/app/views/browse/_navigation.html.erb +++ b/app/views/browse/_navigation.html.erb @@ -1,40 +1,44 @@ -
+
<% if @next_by_user or @prev_by_user %> - <% if @prev_by_user %> + + <% if @prev_by_user %> + < + <%= link_to @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 @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 @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) } %> - | + <%= link_to @prev.id.to_s, + { :id => @prev.id }, + { :title => t('browse.changeset_navigation.all.prev_tooltip') } %> <% 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 @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) } %> + <% if @prev and @next %> + | + <% end %> + <% if @next %> + <%= link_to @next.id.to_s, + { :id => @next.id }, + { :title => t('browse.changeset_navigation.all.next_tooltip') } %> > <% end %> -
- <% end %> - <% if @prev %> - < - <%= link_to @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 @next.id.to_s, - { :id => @next.id }, - { :title => t('browse.changeset_navigation.all.next_tooltip') } %> - > - <% end %> +