--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/channel.tmpl Sun Feb 08 03:23:25 2009 +0200
@@ -0,0 +1,48 @@
+<%inherit file="layout.tmpl" />
+
+<%def name="menu()">
+<ul>
+ <li><a href="${urls.index.build(req)}">Home</a></li>
+
+ <li>
+ <form action="${urls.channel_select.build(req)}" method="GET">
+ <label for="channel">Channel:</label>
+
+ <select name="channel">
+ % for ch in channel_list :
+ <option value="${ch.id}"${' selected="selected"' if ch == channel else ''}>${ch.title}</option>
+ % endfor
+ </select><input type="submit" value="Go »" />
+ </form>
+ </li>
+
+ <li>
+ <form action="" method="GET">
+ View last
+
+ <select name="count">
+ % for cc in (10, 20, 50, 100, 'all') :
+ <option${' selected="selected"' if cc == count else ''}>${cc}</option>
+ % endfor
+ </select>
+
+ lines: <input type="submit" value="Go »" />
+ </form>
+ </li>
+
+ <li><a href="#">Browse by Date</a></li>
+
+ <li><a href="#">Search</a></li>
+
+ <li><a href="#">[RSS]</a></li>
+</ul>
+</%def>
+
+<h1>${channel.title} » Last ${count} lines</h1>
+
+<pre>
+% for line in lines :
+${line}
+% endfor
+</pre>
+