1 <% margin = @next_by_user || @prev_by_user ? 9 : 18 %>
2 <div id="browse_navigation" style="margin-top: <%= margin %>px">
3 <% if @next_by_user or @prev_by_user %>
6 <%= link_to t('browse.changeset_navigation.paging.user.prev', :id => @prev_by_user.id.to_s),
7 { :id => @prev_by_user.id },
8 { :title => t('browse.changeset_navigation.user.prev_tooltip', :user => @prev_by_user.user.display_name) } %>
12 user = (@prev_by_user || @next_by_user).user.display_name
14 { :controller => "changeset", :action => "list", :display_name => user },
15 { :title => t('browse.changeset_navigation.user.name_tooltip', :user => h(user)) }
17 <% if @next_by_user %>
19 <%= link_to t('browse.changeset_navigation.paging.user.next', :id => @next_by_user.id.to_s),
20 { :id => @next_by_user.id },
21 { :title => t('browse.changeset_navigation.user.next_tooltip', :user => @next_by_user.user.display_name) } %>
28 <%= link_to t('browse.changeset_navigation.paging.all.prev', :id => @prev.id.to_s),
30 { :title => t('browse.changeset_navigation.all.prev_tooltip') } %>
32 <% if @prev and @next %>
36 <%= link_to t('browse.changeset_navigation.paging.all.next', :id => @next.id.to_s),
38 { :title => t('browse.changeset_navigation.all.next_tooltip') } %>