/[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 44 - (show annotations)
Tue Feb 20 21:55:24 2007 UTC (17 years, 2 months ago) by dpavlin
File size: 615 byte(s)
refactoring: after testing IPC::PubSub with vairous back-ends, it seems that COMET isn't a
good choice if you want predictible delivery. It also has problems with delay, because it's
a, uh, bus....

However, this refactoring has a good side: code size is reduced and is now easier to handle.
1 <%args>
2 $q
3 $feed => undef
4 $item_fragment => 'long'
5 </%args>
6 <%init>
7
8 my $feeds = Grep::Model::FeedCollection->new();
9 $feeds->unlimit();
10
11 </%init>
12
13 Search remote feeds for '<% $q %>'
14 <ul>
15 % while ( my $f = $feeds->next ) {
16 <li>
17 % if ( $feed and $f->id == $feed ) {
18 <% $f->title %>
19 % } else {
20 <% Jifty->web->link(
21 label => $f->title,
22 onclick => {
23 region => 'results',
24 prepend => '/fragments/remote_results',
25 args => {
26 q => $q,
27 feed => $f->id,
28 item_fragment => $item_fragment,
29 results_action => 'fetch',
30 },
31 submit => 'fetch',
32 disable => 1,
33 as_button => 0,
34 },
35 ) %>
36 % }
37 </li>
38 % }
39 </ul>
40
41

  ViewVC Help
Powered by ViewVC 1.1.26