templates/channel_search.tmpl
changeset 79 43ac75054d5c
parent 76 cc3ab2c39ded
child 118 f530c158aa07
--- a/templates/channel_search.tmpl	Tue Feb 10 01:24:59 2009 +0200
+++ b/templates/channel_search.tmpl	Tue Feb 10 02:57:16 2009 +0200
@@ -10,9 +10,7 @@
         <input type="submit" value="Search" />
         
         Results/page: <select name="count">
-        % for cc, cc_label in config.SEARCH_LINE_COUNT_OPTIONS :
-            <option value="${cc if cc else ''}"${' selected="selected"' if cc == count else ''}>${cc_label}</option>
-        % endfor
+        ${h.select_options(((cc, cc_label) for cc, cc_label in config.SEARCH_LINE_COUNT_OPTIONS), count)}
         </select>
     </form>