/[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 49 by dpavlin, Wed Feb 21 12:52:41 2007 UTC revision 50 by dpavlin, Wed Feb 21 13:29:30 2007 UTC
# Line 21  warn "notes: ",dump($result->message, $r Line 21  warn "notes: ",dump($result->message, $r
21    
22  my $num = 1;  my $num = 1;
23    
24    my ($prev,$next) = (undef, $num + 1);
25    
26  </%init>  </%init>
27  % if ($result and $result->message) {  % if ($result and $result->message) {
28  <div class="grep-note">  <div class="grep-note">
# Line 34  my $num = 1; Line 36  my $num = 1;
36  % }  % }
37  % if ($coll) {  % if ($coll) {
38  <div class="results">  <div class="results">
39  %       while ( my $i = $coll->next and $num++ <= $max ) {  %       while ( my $i = $coll->next and $num <= $max ) {
40  <& "/fragments/item/$item_fragment", item => $i &>  %               $next = $num == $max ? undef : $num + 1;
41    <a name="r<% $num %>"/>
42    <& "/fragments/item/$item_fragment", item => $i, prev => $prev, next => $next &>
43    %               $prev = $num++;
44  %       }  %       }
45  </div>  </div>
46  %       if ($num > $max) {  %       if ($num > $max) {

Legend:
Removed from v.49  
changed lines
  Added in v.50

  ViewVC Help
Powered by ViewVC 1.1.26