/[Grep]/share/web/templates/fetch
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/fetch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22 - (show annotations)
Sun Feb 18 15:44:29 2007 UTC (17 years, 2 months ago) by dpavlin
File size: 601 byte(s)
created separate page for fetching new results
1 <%init>
2
3 my $fetch = Jifty->web->new_action(
4 class => 'Fetch',
5 moniker => 'fetch',
6 arguments => { %ARGS },
7 sticky_on_success => 1,
8 );
9
10 </%init>
11
12 <&| /_elements/wrapper, title => 'Fetch new results' &>
13
14 <& /fragments/bookmarklet &>
15
16 <% Jifty->web->form->start %>
17
18 <% $fetch->form_field('q') %>
19 <% $fetch->form_field('feed') %>
20
21 <% $fetch->button( label => 'Grep' ) %>
22
23 <% Jifty->web->form->end %>
24
25 % if ( my $result = Jifty->web->response->result('fetch') ) {
26 % if ( my $items = $result->content('items') ) {
27 % foreach my $i ( @$items ) {
28 <& /fragments/result, item => $i &>
29 % }
30 % }
31 % }
32
33 </&>

  ViewVC Help
Powered by ViewVC 1.1.26