/[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 164 - (show annotations)
Mon Jun 11 18:21:00 2007 UTC (16 years, 11 months ago) by dpavlin
File size: 847 byte(s)
added focus
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', focus => 1) %>
24 <% $fetch->form_field('feed') %>
25 <% $fetch->form_field('item_fragment') %>
26
27 <% $fetch->button( label => 'Grep' ) %>
28
29 <% Jifty->web->form->end %>
30
31 % if ( my $result = Jifty->web->response->result('fetch') ) {
32 % if ( my $items = $result->content('items') ) {
33 <& '/fragments/results',
34 q => $fetch->argument_value('q'),
35 item_fragment => $fetch->argument_value('item_fragment'),
36 coll => $items,
37 &>
38 % }
39 % }
40
41 </div>
42 </&>

  ViewVC Help
Powered by ViewVC 1.1.26