/[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 29 - (show annotations)
Mon Feb 19 18:25:12 2007 UTC (17 years, 2 months ago) by dpavlin
File MIME type: text/html
File size: 1001 byte(s)
Fetch action now returns Grep::Model::ItemCollection and new fragment on the right allows
using PubSub refresh of left pane with new results
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 defaults => {
27 q => $q,
28 },
29 );
30
31 use Data::Dump qw/dump/;
32
33 </%init>
34
35 <&| '/_elements/wrapper', title => 'Grep - powerful RSS searcher' &>
36
37 <div class="right">
38 % if ( $q ) {
39 <% $feeds->render %>
40 <hr/>
41 % }
42 </div>
43
44 <div class="left">
45 <& '/fragments/bookmarklet' &>
46
47 <% Jifty->web->form->start %>
48
49 <% $search->form_field('content_contains', label => 'Search for') %>
50
51 <% $search->button( label => 'Grep' ) %>
52
53 <% Jifty->web->form->end %>
54
55 <% $results->render %>
56
57 <& '/fragments/results', item_fragment => 'long' &>
58
59 </div>
60
61 </&>

  ViewVC Help
Powered by ViewVC 1.1.26