/[Grep]/share/web/templates/fragments/feeds
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /share/web/templates/fragments/feeds

Parent Directory Parent Directory | Revision Log Revision Log


Revision 161 - (show annotations)
Mon Jun 11 10:17:57 2007 UTC (16 years, 10 months ago) by dpavlin
File size: 491 byte(s)
experimental support for numeric key bindings which is broken in current Jifty trunk
1 <%args>
2 $q
3 $feed => undef
4 $item_fragment => 'long'
5 </%args>
6 <%init>
7 my $feeds = Jifty->web->current_user->feeds;
8 </%init>
9
10 Search remote feeds for '<% $q %>'
11 <ul>
12 % my $nr = 1;
13 % while ( my $f = $feeds->next ) {
14 <li><% Jifty->web->link(
15 label => $f->title,
16 onclick => {
17 region => 'results',
18 prepend => '/fragments/remote_results',
19 args => {
20 q => $q,
21 feed => $f->id,
22 item_fragment => $item_fragment,
23 },
24 },
25 key_binding => $nr < 10 ? $nr++ : undef,
26 ) %></li>
27 % }
28 </ul>
29
30

  ViewVC Help
Powered by ViewVC 1.1.26