templates/channel_date.tmpl
author Tero Marttila <terom@fixme.fi>
Wed, 11 Feb 2009 21:49:35 +0200
changeset 107 67f48e288102
parent 76 cc3ab2c39ded
child 111 95c0c49d76aa
permissions -rw-r--r--
add prev/next date links to channel_date pagination
<%inherit file="channel.tmpl" />
<%namespace file="inc_paginate.tmpl" name="paginate" />

## special pagination stuff
<%def name="paginate_date()">
    <%call expr="paginate.paginate(urls.channel_date, count, page, max, channel=channel, date=date)">
        <%def name="left()">
            <a href="${h.build_url(urls.channel_date, channel=channel, date=h.prev_date(date))}">&laquo; ${h.fmt_date(h.prev_date(date))}</a>
        </%def>
        <%def name="right()">
            <a href="${h.build_url(urls.channel_date, channel=channel, date=h.next_date(date))}">${h.fmt_date(h.next_date(date))} &raquo;</a>
        </%def>
    </%call>
</%def>

<div id="title">${channel.title} :: Logs for ${h.fmt_date(date)}</div>

% if page :
${paginate_date()}
% endif
<%include file="lines.tmpl" />
% if page :
${paginate_date()}
% endif