/[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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 28 - (hide annotations)
Mon Feb 19 16:28:00 2007 UTC (17 years, 4 months ago) by dpavlin
File MIME type: text/html
File size: 796 byte(s)
sweeping changes to include PubSub backend JiftyDBI to make publishing work,
re-organize templates into (hopefully) more meaningful hierarchy,
and a new Search action to drive it all.
1 dpavlin 9 <%init>
2    
3     my $region = Jifty::Web::PageRegion->new(
4     name => 'results',
5     );
6    
7     Jifty->subs->add(
8     class => 'Result',
9     mode => 'Bottom',
10     region => 'results',
11 dpavlin 28 render_with => '/fragments/event/results',
12 dpavlin 9 );
13    
14 dpavlin 23 my $search = Jifty->web->new_action(
15 dpavlin 28 class => 'Search',
16 dpavlin 23 moniker => 'search',
17 dpavlin 9 arguments => { %ARGS },
18     sticky_on_success => 1,
19     );
20    
21     use Data::Dump qw/dump/;
22    
23     </%init>
24    
25 dpavlin 28 <&| '/_elements/wrapper', title => 'Grep - powerful RSS searcher' &>
26 dpavlin 9
27 dpavlin 28 <div class="right">
28     Remote results: <% $region->render %>
29     </div>
30 dpavlin 10
31 dpavlin 28 <div class="left">
32     <& '/fragments/bookmarklet' &>
33    
34 dpavlin 9 <% Jifty->web->form->start %>
35    
36 dpavlin 28 <% $search->form_field('content_contains', label => 'Search for') %>
37 dpavlin 9
38 dpavlin 23 <% $search->button( label => 'Grep' ) %>
39 dpavlin 9
40     <% Jifty->web->form->end %>
41    
42 dpavlin 28 <& '/fragments/results', item_fragment => 'long' &>
43 dpavlin 9
44 dpavlin 28 </div>
45 dpavlin 9
46     </&>

  ViewVC Help
Powered by ViewVC 1.1.26