<!-- BEGIN data_page.tt -->
[% IF pager AND pager.total_entries > pager.entries_per_page %]

	<p class="pager">Pages:
		[% IF pager.previous_page # link backwards %]
			<a href="[% url_with_path %]?page=[% pager.previous_page %]">&laquo;</a>
		[% END %]

		[% FOREACH page IN [ pager.first_page .. pager.last_page ] %]
			[% IF page == pager.current_page # highlight it %]
				<span class="current_page">[% page %]</span>
			[% ELSE # generate url %]
				<a href="[% url_with_path %]?page=[% page %]">[% page %]</a>
			[% END %]
			[% # IF page != pager.last_page %] <!-- | --> [% # END // don't need separators %]
		[% END %]

		[% IF pager.next_page # link forwards %]
			<a href="[% url_with_path %]?page=[% pager.next_page %]">&raquo;</a>
		[% END %]
	</p>
[% END %]

[% IF comment_this_out_to_display %]
<pre>
    <u>Data::Page methods:</u>
	Current page = [% pager.current_page %]
	Total entries = [% pager.total_entries %]
	Entries per page = [% pager.entries_per_page %]
	Entries on this page = [% pager.entries_on_this_page %]
	First page = [% pager.first_page %]
	Last page = [% pager.last_page %]
	First entry on page = [% pager.first %]
	Last entry on page = [% pager.last %]
	Next page = [% pager.next_page %]
	Previous page = [% pager.previous_page %]
	Pages in set = [% pager.pages_in_set # this is Data::PageSet method %]

    <u>CGI query methods:</u>
	full_url      = [% c.query.url %]
	relative_url  = [% c.query.url(relative=1) %]
	absolute_url  = [% c.query.url(absolute=1) %]
	url_with_path = [% c.query.url(path_info=1) %]
	url_with_path_and_query = [% c.query.url(path_info=1,query=1) %]
	netloc        = [% c.query.url(base = 1) %]
</pre>
[% END %]
<!-- END data_page.tt -->
