X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4a711f55f4e0b9a9ece6fee0d74c02ac98e38cf3..1f7dd79daf44de5f8f8b6c246a269e44bb258175:/app/views/browse/_navigation.html.erb 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 %> - -