X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9a3ef885bb72adbde0b968ce67135b8f7b257f35..5dda4196d50774e8a44e9e137d45141d4151764b:/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 ed483d8ec..0856044c8 100644 --- a/app/views/browse/_navigation.html.erb +++ b/app/views/browse/_navigation.html.erb @@ -1,40 +1,43 @@ -
+<% type = (@next || @prev).class.name.downcase %> + <% if @next_by_user or @prev_by_user %> - + <% 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 %> - -