1 <% type = (@next || @prev).class.name.downcase %>
2 <% margin = @next_by_user || @prev_by_user ? 9 : 18 %>
3 <div id="browse_navigation" style="margin-top: <%= margin %>px">
4 <% if @next_by_user or @prev_by_user %>
7 <%= link_to t('browse.navigation.paging.user.prev', :id => @prev_by_user.id.to_s),
8 { :id => @prev_by_user.id },
9 { :title => t("browse.navigation.user.prev_#{type}_tooltip", :user => @prev_by_user.user.display_name) } %>
13 user = (@prev_by_user || @next_by_user).user.display_name
15 { :controller => "changeset", :action => "list", :display_name => user },
16 { :title => t("browse.navigation.user.name_#{type}_tooltip", :user => h(user)) }
18 <% if @next_by_user %>
20 <%= link_to t('browse.navigation.paging.user.next', :id => @next_by_user.id.to_s),
21 { :id => @next_by_user.id },
22 { :title => t("browse.navigation.user.next_#{type}_tooltip", :user => @next_by_user.user.display_name) } %>
29 <%= link_to t('browse.navigation.paging.all.prev', :id => @prev.id.to_s),
31 { :title => t("browse.navigation.all.prev_#{type}_tooltip") } %>
33 <% if @prev and @next %>
37 <%= link_to t('browse.navigation.paging.all.next', :id => @next.id.to_s),
39 { :title => t("browse.navigation.all.next_#{type}_tooltip") } %>