terom@63: <%inherit file="channel.tmpl" /> terom@63: terom@75: <%def name="paginate(url, count, page_cur, page_max, _more=None, _last=False, **args)"> terom@75: <%doc> terom@75: Pagination works using page numbers, with a specific number of maximum pages displayed. If _more is True, terom@75: then instead of a "Next" button, we have a "More" button, which goes to the max+1'th page, unless _last is terom@75: True, whereupon it's not displayed terom@75: terom@73:
terom@73: terom@73:
terom@73: terom@73: terom@65: % if not search_query : terom@63:
${channel.title} :: Search
terom@63: terom@68: terom@63: terom@63: % else : terom@65:
${channel.title} :: Search '${search_query}'
terom@63: terom@75: ${paginate(urls.channel_search, count, page, max, channel=channel, q=search_query, _more=True, _last=not(bool(lines)))} terom@74: % if lines : terom@69: <%include file="lines.tmpl" /> terom@74: % else : terom@74:
No results found
terom@63: % endif terom@75: ${paginate(urls.channel_search, count, page, max, channel=channel, q=search_query, _more=True, _last=not(bool(lines)))} terom@74: % endif