/[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 24 - (show annotations)
Sun Feb 18 20:09:08 2007 UTC (17 years, 4 months ago) by dpavlin
File size: 719 byte(s)
Major re-work of templates, to enable helper local results on the right while fetching
new search resuts from remote feeds.
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 % if ( my $q = $fetch->argument_value('q') ) {
15 <& /fragments/local_results, q => $q &>
16 % }
17
18 <div class="left">
19 <& /fragments/bookmarklet &>
20
21 <% Jifty->web->form->start %>
22
23 <% $fetch->form_field('q') %>
24 <% $fetch->form_field('feed') %>
25
26 <% $fetch->button( label => 'Grep' ) %>
27
28 <% Jifty->web->form->end %>
29
30 % if ( my $result = Jifty->web->response->result('fetch') ) {
31 % if ( my $items = $result->content('items') ) {
32 % foreach my $i ( @$items ) {
33 <& /fragments/result, item => $i &>
34 % }
35 % }
36 % }
37
38 </div>
39 </&>

  ViewVC Help
Powered by ViewVC 1.1.26