<% -- File ==== include_paging.html Description =========== This page generates the paging (<< < 1 2 3 4 > >>) that you see on any page having too many items to display on one screen. This is much less efficient that the code in GForum::GUI, which is used for this page in the default template set, but accomplishes the same thing. --%> <%set search_engine_path = '/forum'%> <%unless this_do eq post_view_flat and mh == -1%> <% GForum::Utils::paging($num_page_items, $mh, $this_page, 9, 'use ...')%> <% unless top_page = 1%> <% if this_page = 1%> First page Previous page <% else%> <%if this_do eq post_view_flat%> First page Previous page <%elsif this_do eq forum_view_collapsed%> First page Previous page <%else%> First page Previous page <%endif%> <% endif%> <% loop paging%> <% if first and page_num > 1%> <% if this_do eq post_view_flat%> 1 <% elsif this_do eq forum_view_collapsed%> 1 <% else%> 1 <% endif%> <% if page_num > 2%>...<%endif%> <% endif%> <% if is_current_page%> <%page_num%> <% else%> <%if this_do eq post_view_flat%> <%page_num%> <%elsif this_do eq forum_view_collapsed%> <%page_num%> <%else%> <%page_num%> <%endif%> <% endif%> <% endloop%> <% if dotdotdot%> ... <%if this_do eq post_view_flat%> <%top_page%> <%elsif this_do eq forum_view_collapsed%> <%top_page%> <%else%> <%top_page%> <%endif%> <% endif%> <% if this_page = $top_page%> Next page Last page <% else%> <%if this_do eq post_view_flat%> Next page Last page <%elsif this_do eq forum_view_collapsed%> Next page Last page <%else%> Next page Last page <%endif%> <% endif%> <% if this_do eq post_view_flat%>  View All <% endif%> <% else%>  <% endunless%> <%endunless%>