User: sits    
  Date: 08/06/15 23:01:04

  Modified:    lib/Codestriker/Action ViewTopic.pm
  Log:
  Make sure the previous/next links for all delta objects are recorded so that 
the various views are rendered correctly.
  
  
  
  Index: ViewTopic.pm
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/lib/Codestriker/Action/ViewTopic.pm,v
  retrieving revision 1.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- ViewTopic.pm      11 Jun 2008 12:00:31 -0000      1.60
  +++ ViewTopic.pm      16 Jun 2008 06:01:04 -0000      1.61
  @@ -247,9 +247,9 @@
   
       # Set the per-delta URL links, such as adding a file-level comment,
       # and links to the previous/next file.
  -    my $filenumber = 0;
       my $current_filename = "";
       foreach my $delta (@deltas) {
  +    my $filenumber = $delta->{filenumber};   
        $delta->{add_file_comment_element} =
            $delta_renderer->comment_link($filenumber, -1, 1, "[Add File 
Comment]");
   
  @@ -276,8 +276,7 @@
        }
   
        # Create the next/previous file URL links.
  -     if ($current_filename ne $delta->{filename}) {
  -         if ($filenumber > 0) {
  +    if ($filenumber > 0) {
                $delta->{previous_file_url} =
                    $url_builder->view_url($topicid, -1, $mode, $brmode,
                                           $filenumber-1) . "#" . 
$filenames[$filenumber-1];
  @@ -288,10 +287,7 @@
                                           $filenumber+1) . "#" . 
$filenames[$filenumber+1];
            }
   
  -         # Keep track of the current filename being processed.
  -         $filenumber++;
            $current_filename = $delta->{filename};
  -     }
       }
   
       # Annotate the deltas appropriately so that they can be easily rendered.
  
  
  

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Codestriker-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/codestriker-commits

Reply via email to