X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/9a3ef885bb72adbde0b968ce67135b8f7b257f35..901de4a56a58b4967eec5f2a20e241e3d1c088e9:/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 %> - -