3 <%def name="menu()"> |
3 <%def name="menu()"> |
4 <ul> |
4 <ul> |
5 <li><a href="${urls.index.build(req)}">Home</a></li> |
5 <li><a href="${urls.index.build(req)}">Home</a></li> |
6 |
6 |
7 <li> |
7 <li> |
|
8 <a href="${urls.channel_view.build(req, channel=channel)}">Channel:</a> |
|
9 </li><li class="join-left"> |
8 <form action="${urls.channel_select.build(req)}" method="GET"> |
10 <form action="${urls.channel_select.build(req)}" method="GET"> |
9 <label for="channel">Channel:</label> |
|
10 |
|
11 <select name="channel"> |
11 <select name="channel"> |
12 % for ch in channel_list : |
12 % for ch in channel_list : |
13 <option value="${ch.id}"${' selected="selected"' if ch == channel else ''}>${ch.title}</option> |
13 <option value="${ch.id}"${' selected="selected"' if ch == channel else ''}>${ch.title}</option> |
14 % endfor |
14 % endfor |
15 </select><input type="submit" value="Go »" /> |
15 </select><input type="submit" value="Go »" /> |
16 </form> |
16 </form> |
17 </li> |
17 </li> |
18 |
18 |
19 <li> |
19 <li> |
|
20 <a href="${urls.channel_view.build(req, channel=channel, count=count)}">View last:</a> |
|
21 </li><li class="join-left"> |
20 <form action="" method="GET"> |
22 <form action="" method="GET"> |
21 View last |
|
22 |
|
23 <select name="count"> |
23 <select name="count"> |
24 % for cc in (10, 20, 50, 100, 'all') : |
24 % for cc in (10, 20, 50, 100, 'all') : |
25 <option${' selected="selected"' if cc == count else ''}>${cc}</option> |
25 <option${' selected="selected"' if cc == count else ''}>${cc}</option> |
26 % endfor |
26 % endfor |
27 </select> |
27 </select> |