fix off-by-one with search paginate, and implement basic pagination for channel_date
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%def name="menu()">
<ul>
<li><a href="${urls.index.build(req)}">Home</a></li>
<li><a href="${urls.preferences.build(req)}">Preferences</a></li>
</ul>
</%def>
<%def name="footer_right()">
</%def>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>irclogs.qmsk.net${(' :: ' + channel.title) if channel else ''}</title>
<link rel="Stylesheet" type="text/css" href="${req.site_root}/static/irclogs.css" />
</head>
<body>
<div id="menu">
${next.menu()}
</div>
<div id="content">
${next.body()}
</div>
<div id="footer">
<div id="footer-right">
${next.footer_right()}
</div>
<div id="footer-left">
</div>
<div id="footer-center">
${h.validation_notice(req.site_host)}
</div>
</div>
</body>
</html>