/[Grep]/share/web/templates/fetch
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/fetch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 28 - (show annotations)
Mon Feb 19 16:28:00 2007 UTC (17 years, 3 months ago) by dpavlin
File size: 804 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 <%init>
2
3 my $fetch = Jifty->web->new_action(
4 class => 'Fetch',
5 moniker => 'fetch',
6 arguments => { %ARGS },
7 sticky_on_success => 1,
8 );
9
10 </%init>
11
12 <&| /_elements/wrapper, title => 'Fetch new results' &>
13
14 % if ( my $q = $fetch->argument_value('q') ) {
15 <& /fragments/local_results, q => $q &>
16 % }
17
18 <div class="left">
19 <& /fragments/bookmarklet &>
20
21 <% Jifty->web->form->start %>
22
23 <% $fetch->form_field('q') %>
24 <% $fetch->form_field('feed') %>
25 <% $fetch->form_field('item_fragment') %>
26
27 <% $fetch->button( label => 'Grep' ) %>
28
29 <% Jifty->web->form->end %>
30
31 % if ( my $result = Jifty->web->response->result('fetch') ) {
32 % if ( my $items = $result->content('items') ) {
33 % foreach my $i ( @$items ) {
34 <& '/fragments/item/' . $fetch->argument_value('item_fragment'), item => $i &>
35 % }
36 % }
37 % }
38
39 </div>
40 </&>

  ViewVC Help
Powered by ViewVC 1.1.26