1 <% type = (@next || @prev).class.name.downcase %>
2 <ul class='secondary-actions clearfix pager'>
5 <%= link_to t('browse.navigation.paging.all.prev', :id => @prev.id.to_s),
7 { :title => t("browse.navigation.all.prev_#{type}_tooltip") } %>
12 <%= link_to t('browse.navigation.paging.all.next', :id => @next.id.to_s),
14 { :title => t("browse.navigation.all.next_#{type}_tooltip") } %>
18 <% if @next_by_user or @prev_by_user %>
19 <ul class='secondary-actions pager clearfix'>
20 <% if @prev_by_user %>
22 <%= link_to t('browse.navigation.paging.user.prev', :id => @prev_by_user.id.to_s),
23 { :id => @prev_by_user.id },
24 { :title => t("browse.navigation.user.prev_#{type}_tooltip", :user => @prev_by_user.user.display_name) } %>
29 user = (@prev_by_user || @next_by_user).user.display_name
31 { :controller => "changeset", :action => "list", :display_name => user },
32 { :title => t("browse.navigation.user.name_#{type}_tooltip", :user => h(user)) }
35 <% if @next_by_user %>
37 <%= link_to t('browse.navigation.paging.user.next', :id => @next_by_user.id.to_s),
38 { :id => @next_by_user.id },
39 { :title => t("browse.navigation.user.next_#{type}_tooltip", :user => @next_by_user.user.display_name) } %>