Parent Directory | Revision Log
Fetch action now returns Grep::Model::ItemCollection and new fragment on the right allows using PubSub refresh of left pane with new results
1 | <%args> |
2 | $q |
3 | $feed => undef |
4 | </%args> |
5 | <%init> |
6 | |
7 | my $feeds = Grep::Model::FeedCollection->new(); |
8 | $feeds->unlimit(); |
9 | |
10 | if ($feed) { |
11 | warn "searching $feed for $q"; |
12 | my $fetch = Jifty->web->new_action( |
13 | class => 'Fetch', |
14 | moniker => 'fetch_feed', |
15 | arguments => { |
16 | q => $q, |
17 | feed => $feed, |
18 | item_fragment => 'title', |
19 | publish => 1, |
20 | } |
21 | ); |
22 | $fetch->take_action(); |
23 | } |
24 | |
25 | </%init> |
26 | |
27 | Search remote feeds for <% $q %> |
28 | <ul> |
29 | % while ( my $f = $feeds->next ) { |
30 | <li><% Jifty->web->link( |
31 | label => $f->title, |
32 | onclick => { |
33 | #replace_width => '/fragments/feed_results', |
34 | args => { |
35 | q => $q, |
36 | feed => $f->id, |
37 | item_fragment => 'title', |
38 | }, |
39 | }, |
40 | ) %></li> |
41 | % } |
42 | </ul> |
43 | |
44 |
ViewVC Help | |
Powered by ViewVC 1.1.26 |