templates/channel_last.tmpl
changeset 114 d4848d807fd1
parent 80 a0662cff1d9d
--- a/templates/channel_last.tmpl	Wed Feb 11 23:22:13 2009 +0200
+++ b/templates/channel_last.tmpl	Wed Feb 11 23:38:05 2009 +0200
@@ -2,12 +2,17 @@
 
 <div id="title">${channel.title} :: Last ${count} lines</div>
 
-<a href="${h.build_url(urls.channel_last, channel=channel, count=count+50)}" class='more-link'>...More...</a>
+<form action="${h.url(urls.channel_last, channel=channel)}" method="GET">
+    View last <select name="count">
+        ${h.select_options(((None, cc) for cc in (10, 20, 50, 100, 200, 500, 1000)), count)}
+    </select> lines: <input type="submit" value="Go &raquo;" />
+</form>
+
 <%include file="lines.tmpl" />
 
 <div id="other-formats">
     Other formats available:<br/>
-        <a href="${h.build_url(urls.channel_last, channel=channel, count=count, type='txt')}">Plaintext</a>
-    |   <a href="${h.build_url(urls.channel_last, channel=channel, count=count, type='png')}">PNG</a>
-    |   <a href="${h.build_url(urls.channel_last, channel=channel, count=count, type='rss')}">RSS</a>
+        <a href="${h.url(urls.channel_last, channel=channel, count=count, type='txt')}">Plaintext</a>
+    |   <a href="${h.url(urls.channel_last, channel=channel, count=count, type='png')}">PNG</a>
+    |   <a href="${h.url(urls.channel_last, channel=channel, count=count, type='rss')}">RSS</a>
 </div>