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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 28 - (show annotations)
Mon Feb 19 16:28:00 2007 UTC (17 years, 2 months ago) by dpavlin
File size: 470 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 <%args>
2 $item_fragment => 'long'
3 $coll => undef
4 $moniker => 'search'
5 </%args>
6 <%init>
7
8 use Data::Dump qw/dump/;
9
10 my $results = Jifty->web->response->result( $moniker );
11 if ( $results and $results->content('search') ) {
12 $coll = $results->content('search');
13 } elsif (! $coll) {
14 warn "called without results for $moniker";
15 }
16 </%init>
17 % if ($coll) {
18 <div class="results">
19 % while ( my $i = $coll->next ) {
20 <& "/fragments/item/$item_fragment", item => $i &>
21 % }
22 </div>
23 % }

  ViewVC Help
Powered by ViewVC 1.1.26