templates/channel.tmpl
changeset 79 43ac75054d5c
parent 71 e909bde831e7
child 85 0521cf830eb9
--- 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 &raquo;" />
         </form>
     </li>