--- a/sites/irclogs.qmsk.net/templates/channel.tmpl Sun Feb 08 02:29:23 2009 +0200
+++ b/sites/irclogs.qmsk.net/templates/channel.tmpl Sun Feb 08 02:55:53 2009 +0200
@@ -17,12 +17,12 @@
</li>
<li>
- <form action="#" method="GET">
+ <form action="" method="GET">
View last
<select name="count">
- % for count in (10, 20, 50, 100, 'all') :
- <option>${count}</option>
+ % for cc in (10, 20, 50, 100, 'all') :
+ <option${' selected="selected"' if cc == count else ''}>${cc}</option>
% endfor
</select>
@@ -38,10 +38,10 @@
</ul>
</%def>
-<h1>${channel.title} » Last 10 lines</h1>
+<h1>${channel.title} » Last ${count} lines</h1>
<pre>
-% for line in channel.source.get_latest(10) :
+% for line in lines :
${line}
% endfor
</pre>