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

Diff of /share/web/templates/fragments/results

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 44 by dpavlin, Tue Feb 20 21:55:24 2007 UTC revision 56 by dpavlin, Wed Feb 21 17:38:59 2007 UTC
# Line 17  if ( $result and $result->content('searc Line 17  if ( $result and $result->content('searc
17          warn "called without result for $result_moniker";          warn "called without result for $result_moniker";
18  }  }
19    
20  warn "notes: ",dump($result->message, $result->error) if ($result);  #warn "notes: ",dump($result->message, $result->error) if ($result);
21    
22  my $i = 1;  my $pos = 1;
23    
24    my ($prev,$next) = (undef, $pos + 1);
25    
26  </%init>  </%init>
27  % if ($result and $result->message) {  % if ($result and $result->message) {
# Line 33  my $i = 1; Line 35  my $i = 1;
35  </div>  </div>
36  % }  % }
37  % if ($coll) {  % if ($coll) {
38    % my $count = $coll->count;
39  <div class="results">  <div class="results">
40  %       while ( my $i = $coll->next and $i++ <= $max ) {  %       while ( my $i = $coll->next and $pos <= $max ) {
41  <& "/fragments/item/$item_fragment", item => $i &>  %               $next = ( $pos == $max or $pos == $count ) ? undef : $pos + 1;
42    <& "/fragments/item/$item_fragment", item => $i, pos => $pos, prev => $prev, next => $next &>
43    %               $prev = $pos++;
44  %       }  %       }
45  </div>  </div>
46  %       if ($i > $max) {  %       if ($pos > $max and $pos < $count ) {
47  <div class="grep-note">  <div class="grep-note">
48  <div class="message">  <div class="message">
49  Found more than <% $max %> results for '<% $q %>', refine search query....  Found more than <% $max %> results for '<% $q %>', refine search query....

Legend:
Removed from v.44  
changed lines
  Added in v.56

  ViewVC Help
Powered by ViewVC 1.1.26