--- a/templates/channel.tmpl Tue Feb 10 01:24:59 2009 +0200
+++ b/templates/channel.tmpl Tue Feb 10 02:57:16 2009 +0200
@@ -10,9 +10,7 @@
</li><li class="join-left">
<form action="${urls.channel_select.build(req)}" method="GET">
<select name="channel">
- % for ch in channel_list :
- <option value="${ch.id}"${' selected="selected"' if ch == channel else ''}>${ch.title}</option>
- % endfor
+ ${h.select_options(((ch.id, ch.title) for ch in channel_list), channel.id)}
</select><input type="submit" value="Go »" />
</form>
</li>