qmsk/irclogs/templates/channel_date.tmpl
author Tero Marttila <terom@fixme.fi>
Sun, 13 Sep 2009 20:08:16 +0300
changeset 143 154d2d8ae9c0
parent 111 templates/channel_date.tmpl@95c0c49d76aa
permissions -rw-r--r--
kill version magic from setup.py, rename scripts to global names and move package data into the package
<%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()">
        % if date_prev :
            <a href="${h.build_url(urls.channel_date, channel=channel, date=date_prev)}">&laquo; ${h.fmt_date(date_prev)}</a>
        % endif
        </%def>
        <%def name="right()">
        % if date_next :
            <a href="${h.build_url(urls.channel_date, channel=channel, date=date_next)}">${h.fmt_date(date_next)} &raquo;</a>
        % endif
        </%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