2 range_start = ((@page - 1) * @traces_per_page) + 1
3 range_end = (@page==@max_page ? @max_trace : (@page * @traces_per_page))
7 <%= @page %> (<%= range_start %><%
8 if (@max_trace != range_start) # if more than 1 trace on page
14 | <%= link_to 'previous page', {:controller => 'trace', :display_name => @display_name, :action => @paging_action, :page => @page-1}, {:title => 'previous page'} %>
17 <% if @page < @max_page %>
18 | <%= link_to 'next page', {:controller => 'trace', :display_name => @display_name, :action => @paging_action, :page => @page+1}, {:title => 'next page'} %>