/[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 42 - (show annotations)
Tue Feb 20 12:26:14 2007 UTC (17 years, 2 months ago) by dpavlin
File MIME type: text/html
File size: 1057 byte(s)
A bit better messages, Fetch action result now include count as number of results,
remote feeds have now run parametar to, well, run them :-)
1 <%init>
2
3 my $results = Jifty::Web::PageRegion->new(
4 name => 'results',
5 );
6
7 Jifty->subs->add(
8 class => 'Result',
9 mode => 'Top',
10 region => 'results',
11 render_with => '/fragments/event/results',
12 );
13
14 my $search = Jifty->web->new_action(
15 class => 'Search',
16 moniker => 'search',
17 arguments => { %ARGS },
18 sticky_on_success => 1,
19 );
20
21 my $q = $search->argument_value('content_contains');
22
23 my $feeds = Jifty::Web::PageRegion->new(
24 name => 'feeds',
25 path => '/fragments/feeds',
26 force_arguments => {
27 q => $q,
28 run => 0,
29 },
30 );
31
32 use Data::Dump qw/dump/;
33
34 </%init>
35
36 <&| '/_elements/wrapper', title => 'Grep - powerful RSS searcher' &>
37
38 <div class="right">
39 % if ( $q ) {
40 <% $feeds->render %>
41 <hr/>
42 % }
43 </div>
44
45 <div class="left">
46 <& '/fragments/bookmarklet' &>
47
48 <% Jifty->web->form->start %>
49
50 <% $search->form_field('content_contains', label => 'Search for', q => $q ) %>
51
52 <% $search->button( label => 'Grep' ) %>
53
54 <% Jifty->web->form->end %>
55
56 <% $results->render %>
57
58 % if ( $q ) {
59 <& '/fragments/results', item_fragment => 'long', q => $q &>
60 % }
61
62 </div>
63
64 </&>

  ViewVC Help
Powered by ViewVC 1.1.26