/[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 10 by dpavlin, Sun Feb 18 00:21:01 2007 UTC revision 106 by dpavlin, Tue Mar 6 16:17:19 2007 UTC
# Line 1  Line 1 
1  <%init>  <&| '/_elements/wrapper', title => 'Grep - powerful RSS searcher' &>
2    
3  my $region = Jifty::Web::PageRegion->new(  This application needs to know which user is using it. So, you need ether to
4          name => 'results',  <% Jifty->web->link( label => 'signup for your account', url => '/signup' ) %>
5  );  or
6    <% Jifty->web->link( label => 'login with existing account', url => '/login' ) %>
7  Jifty->subs->add(  to use it.
         class => 'Result',  
         mode => 'Bottom',  
         region => 'results',  
         render_with => '/fragments/result',  
 );  
   
 my $fetch = Jifty->web->new_action(  
         class => 'Fetch',  
         moniker => 'fetch',  
         arguments => { %ARGS },  
         sticky_on_success => 1,  
 );  
   
 use Data::Dump qw/dump/;  
   
 </%init>  
   
 <&| /_elements/wrapper, title => 'Grep - powerfull RSS searcher' &>  
   
 <span class="bookmarklet">  
 <a href="javascript:location.href='<% Jifty->web->url( path => '/add' ) %>?uri='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)" title="bookmarklet which you can drag and drop to bookmark toolback to quickly add feed to grep">+grep</a>  
 </span>  
   
   
 <% Jifty->web->form->start %>  
   
 <% $fetch->form_field('q') %>  
 <% $fetch->form_field('feed') %>  
   
 <% $fetch->button( label => 'Grep' ) %>  
   
 <% Jifty->web->form->end %>  
   
 % if ( my $result = Jifty->web->response->result('fetch') ) {  
 %       if ( my $items = $result->content('items') ) {  
 %               foreach my $i ( @$items ) {  
   
         <& /fragments/result, item => $i &>  
   
 %               }  
 %       }  
 % }  
   
 Results: <% $region->render %>  
8    
9  </&>  </&>

Legend:
Removed from v.10  
changed lines
  Added in v.106

  ViewVC Help
Powered by ViewVC 1.1.26