diff -r 37e67ec434f3 -r 95c0c49d76aa templates/channel_date.tmpl --- a/templates/channel_date.tmpl Wed Feb 11 22:01:53 2009 +0200 +++ b/templates/channel_date.tmpl Wed Feb 11 22:24:55 2009 +0200 @@ -5,10 +5,14 @@ <%def name="paginate_date()"> <%call expr="paginate.paginate(urls.channel_date, count, page, max, channel=channel, date=date)"> <%def name="left()"> - « ${h.fmt_date(h.prev_date(date))} + % if date_prev : + « ${h.fmt_date(date_prev)} + % endif <%def name="right()"> - ${h.fmt_date(h.next_date(date))} » + % if date_next : + ${h.fmt_date(date_next)} » + % endif