sites/irclogs.qmsk.net/templates/channel.tmpl
branchsites
changeset 43 fc11c4e86a82
parent 42 5a72c00c4ae4
--- 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} &raquo; Last 10 lines</h1>
+<h1>${channel.title} &raquo; Last ${count} lines</h1>
 
 <pre>
-% for line in channel.source.get_latest(10) :
+% for line in lines :
 ${line}
 % endfor
 </pre>