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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 54 - (show annotations)
Wed Feb 21 16:12:17 2007 UTC (17 years, 2 months ago) by dpavlin
File MIME type: text/html
File size: 952 byte(s)
make item_fragment work, so Show drop-down isn't dead anymore
1 <%init>
2
3 my $results = Jifty::Web::PageRegion->new(
4 name => 'results',
5 );
6
7 my $search = Jifty->web->new_action(
8 class => 'Search',
9 moniker => 'search',
10 arguments => { %ARGS },
11 sticky_on_success => 1,
12 );
13
14 my $q = $search->argument_value('q');
15
16 my $feeds = Jifty::Web::PageRegion->new(
17 name => 'feeds',
18 path => '/fragments/feeds',
19 force_arguments => {
20 q => $q,
21 feed => undef,
22 },
23 );
24
25 use Data::Dump qw/dump/;
26
27 </%init>
28
29 <&| '/_elements/wrapper', title => 'Grep - powerful RSS searcher' &>
30
31 <div class="right">
32 % if ( $q ) {
33 <% $feeds->render %>
34 <hr/>
35 % }
36 </div>
37
38 <div class="left">
39 <& '/fragments/bookmarklet' &>
40
41 <% Jifty->web->form->start %>
42
43 <% $search->form_field('q') %>
44 <% $search->form_field('item_fragment') %>
45
46 <% $search->button( label => 'Grep' ) %>
47
48 <% Jifty->web->form->end %>
49
50 <% $results->render %>
51
52 % if ( $q ) {
53 <& '/fragments/results', item_fragment => $search->argument_value('item_fragment'), q => $q &>
54 % }
55
56 </div>
57
58 </&>

  ViewVC Help
Powered by ViewVC 1.1.26