templates/channel_date.tmpl
author Tero Marttila <terom@fixme.fi>
Fri, 13 Feb 2009 00:29:47 +0200
changeset 121 86aebc9cb60b
parent 111 95c0c49d76aa
permissions -rw-r--r--
some quickfixes to fix deployment errors
50
f13cf27a360b implement more LogSource features (logs for date, cleanup last_logs), implement irssi parser, formatter, other misc. stuff
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     1
<%inherit file="channel.tmpl" />
107
67f48e288102 add prev/next date links to channel_date pagination
Tero Marttila <terom@fixme.fi>
parents: 76
diff changeset
     2
<%namespace file="inc_paginate.tmpl" name="paginate" />
67f48e288102 add prev/next date links to channel_date pagination
Tero Marttila <terom@fixme.fi>
parents: 76
diff changeset
     3
67f48e288102 add prev/next date links to channel_date pagination
Tero Marttila <terom@fixme.fi>
parents: 76
diff changeset
     4
## special pagination stuff
67f48e288102 add prev/next date links to channel_date pagination
Tero Marttila <terom@fixme.fi>
parents: 76
diff changeset
     5
<%def name="paginate_date()">
67f48e288102 add prev/next date links to channel_date pagination
Tero Marttila <terom@fixme.fi>
parents: 76
diff changeset
     6
    <%call expr="paginate.paginate(urls.channel_date, count, page, max, channel=channel, date=date)">
67f48e288102 add prev/next date links to channel_date pagination
Tero Marttila <terom@fixme.fi>
parents: 76
diff changeset
     7
        <%def name="left()">
111
95c0c49d76aa implement prev/next_date in LogSource
Tero Marttila <terom@fixme.fi>
parents: 107
diff changeset
     8
        % if date_prev :
95c0c49d76aa implement prev/next_date in LogSource
Tero Marttila <terom@fixme.fi>
parents: 107
diff changeset
     9
            <a href="${h.build_url(urls.channel_date, channel=channel, date=date_prev)}">&laquo; ${h.fmt_date(date_prev)}</a>
95c0c49d76aa implement prev/next_date in LogSource
Tero Marttila <terom@fixme.fi>
parents: 107
diff changeset
    10
        % endif
107
67f48e288102 add prev/next date links to channel_date pagination
Tero Marttila <terom@fixme.fi>
parents: 76
diff changeset
    11
        </%def>
67f48e288102 add prev/next date links to channel_date pagination
Tero Marttila <terom@fixme.fi>
parents: 76
diff changeset
    12
        <%def name="right()">
111
95c0c49d76aa implement prev/next_date in LogSource
Tero Marttila <terom@fixme.fi>
parents: 107
diff changeset
    13
        % if date_next :
95c0c49d76aa implement prev/next_date in LogSource
Tero Marttila <terom@fixme.fi>
parents: 107
diff changeset
    14
            <a href="${h.build_url(urls.channel_date, channel=channel, date=date_next)}">${h.fmt_date(date_next)} &raquo;</a>
95c0c49d76aa implement prev/next_date in LogSource
Tero Marttila <terom@fixme.fi>
parents: 107
diff changeset
    15
        % endif
107
67f48e288102 add prev/next date links to channel_date pagination
Tero Marttila <terom@fixme.fi>
parents: 76
diff changeset
    16
        </%def>
67f48e288102 add prev/next date links to channel_date pagination
Tero Marttila <terom@fixme.fi>
parents: 76
diff changeset
    17
    </%call>
67f48e288102 add prev/next date links to channel_date pagination
Tero Marttila <terom@fixme.fi>
parents: 76
diff changeset
    18
</%def>
50
f13cf27a360b implement more LogSource features (logs for date, cleanup last_logs), implement irssi parser, formatter, other misc. stuff
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    19
56
69494e4a5ecc tweak layout slightly
Tero Marttila <terom@fixme.fi>
parents: 50
diff changeset
    20
<div id="title">${channel.title} :: Logs for ${h.fmt_date(date)}</div>
50
f13cf27a360b implement more LogSource features (logs for date, cleanup last_logs), implement irssi parser, formatter, other misc. stuff
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    21
76
cc3ab2c39ded fix off-by-one with search paginate, and implement basic pagination for channel_date
Tero Marttila <terom@fixme.fi>
parents: 69
diff changeset
    22
% if page :
107
67f48e288102 add prev/next date links to channel_date pagination
Tero Marttila <terom@fixme.fi>
parents: 76
diff changeset
    23
${paginate_date()}
76
cc3ab2c39ded fix off-by-one with search paginate, and implement basic pagination for channel_date
Tero Marttila <terom@fixme.fi>
parents: 69
diff changeset
    24
% endif
69
1f182913b1f2 href-ize urls
Tero Marttila <terom@fixme.fi>
parents: 65
diff changeset
    25
<%include file="lines.tmpl" />
76
cc3ab2c39ded fix off-by-one with search paginate, and implement basic pagination for channel_date
Tero Marttila <terom@fixme.fi>
parents: 69
diff changeset
    26
% if page :
107
67f48e288102 add prev/next date links to channel_date pagination
Tero Marttila <terom@fixme.fi>
parents: 76
diff changeset
    27
${paginate_date()}
76
cc3ab2c39ded fix off-by-one with search paginate, and implement basic pagination for channel_date
Tero Marttila <terom@fixme.fi>
parents: 69
diff changeset
    28
% endif
cc3ab2c39ded fix off-by-one with search paginate, and implement basic pagination for channel_date
Tero Marttila <terom@fixme.fi>
parents: 69
diff changeset
    29