/[Grep]/share/web/templates/index.html
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /share/web/templates/index.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 16 by dpavlin, Sun Feb 18 01:07:52 2007 UTC revision 24 by dpavlin, Sun Feb 18 20:09:08 2007 UTC
# Line 11  Jifty->subs->add( Line 11  Jifty->subs->add(
11          render_with => '/fragments/result',          render_with => '/fragments/result',
12  );  );
13    
14  my $fetch = Jifty->web->new_action(  my $search = Jifty->web->new_action(
15          class => 'Fetch',          class => 'SearchItem',
16          moniker => 'fetch',          moniker => 'search',
17          arguments => { %ARGS },          arguments => { %ARGS },
18          sticky_on_success => 1,          sticky_on_success => 1,
19  );  );
# Line 22  use Data::Dump qw/dump/; Line 22  use Data::Dump qw/dump/;
22    
23  </%init>  </%init>
24    
25  <&| /_elements/wrapper, title => 'Grep - powerfull RSS searcher' &>  <&| /_elements/wrapper, title => 'Grep - powerful RSS searcher' &>
   
 <a class="bookmarklet" href="javascript:location.href='<% Jifty->web->url( path => '/add' ) %>?uri='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)" title="drag and drop to bookmark toolbar to quickly add feed to grep">+grep</a>  
26    
27    <& /fragments/bookmarklet &>
28    
29  <% Jifty->web->form->start %>  <% Jifty->web->form->start %>
30    
31  <% $fetch->form_field('q') %>  <% $search->form_field('content_contains') %>
 <% $fetch->form_field('feed') %>  
32    
33  <% $fetch->button( label => 'Grep' ) %>  <% $search->button( label => 'Grep' ) %>
34    
35  <% Jifty->web->form->end %>  <% Jifty->web->form->end %>
36    
37  % if ( my $result = Jifty->web->response->result('fetch') ) {  <& /fragments/results, result => 'result' &>
 %       if ( my $items = $result->content('items') ) {  
 %               foreach my $i ( @$items ) {  
   
         <& /fragments/result, item => $i &>  
   
 %               }  
 %       }  
 % }  
38    
39  Results: <% $region->render %>  Results: <% $region->render %>
40    

Legend:
Removed from v.16  
changed lines
  Added in v.24

  ViewVC Help
Powered by ViewVC 1.1.26