User: sits    
  Date: 08/03/12 17:56:03

  Modified:    lib/Codestriker/Action ViewTopic.pm
               template/en/default viewtopic.html.tmpl
  Log:
  Remove the old Render references from ViewTopic
  
  
  
  Index: ViewTopic.pm
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/lib/Codestriker/Action/ViewTopic.pm,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- ViewTopic.pm      11 Mar 2008 09:06:50 -0000      1.57
  +++ ViewTopic.pm      13 Mar 2008 00:56:02 -0000      1.58
  @@ -16,7 +16,6 @@
   use Codestriker::Model::Topic;
   use Codestriker::Model::Comment;
   use Codestriker::Http::UrlBuilder;
  -use Codestriker::Http::Render;
   use Codestriker::Http::DeltaRenderer;
   use Codestriker::Repository::RepositoryFactory;
   use Codestriker::TopicListeners::Manager;
  @@ -306,43 +305,6 @@
       # Fire the template for generating the view topic screen.
       my $template = Codestriker::Http::Template->new("viewtopic");
       $template->process($vars);
  -
  -    # The rest of the output is non-template driven, as it is quite
  -    # complex.
  -
  -    print $query->p if ($mode == $Codestriker::NORMAL_MODE);
  -
  -    # Number of characters the line number should take, need the real lines
  -    # not the number of changed lines.
  -    my @document = split /\n/, $topic->{document};
  -    my $max_digit_width = length($#document+1);
  -
  -    # Build the render which will be used to build this page.
  -    my $render = Codestriker::Http::Render->new($query, $url_builder, 1,
  -                                             $max_digit_width, $topicid,
  -                                             $mode, [EMAIL PROTECTED], 
$tabwidth,
  -                                             $repository, [EMAIL PROTECTED],
  -                                             [EMAIL PROTECTED], [EMAIL 
PROTECTED],
  -                                             [EMAIL PROTECTED], -1,
  -                                             $brmode, $fview);
  -
  -    # Retrieve the delta set comprising this review.
  -    my $old_filename = "";
  -    
  -    # Now render the selected deltas.
  -    for (my $i = 0; $i <= $#deltas; $i++) {
  -     my $delta =  $deltas[$i];
  -     $render->delta($delta);
  -    }
  -
  -    $render->finish();
  -
  -    # Render the HTML trailer.
  -    my $trailer = Codestriker::Http::Template->new("trailer");
  -    $trailer->process();
  -
  -    print $query->end_html();
  -
       $http_response->generate_footer();
   
       # Fire the topic listener to indicate that the user has viewed the topic.
  
  
  
  
  
  Index: viewtopic.html.tmpl
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/template/en/default/viewtopic.html.tmpl,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- viewtopic.html.tmpl       11 Mar 2008 06:01:13 -0000      1.42
  +++ viewtopic.html.tmpl       13 Mar 2008 00:56:03 -0000      1.43
  @@ -99,7 +99,8 @@
                      mode = mode %]
   
   <p>
  -<span class="general_comment">[% add_general_comment_element %]</span>
  +<span class="general_comment">[% add_general_comment_element %] to 
topic.</span>
  +<p>
   
   [% PROCESS viewdeltas.html.tmpl deltas = deltas %]
   
  @@ -116,7 +117,11 @@
   <p>
   <span class="general_comment">[% add_general_comment_element %] to 
topic.</span>
   
  -[%# The perl script takes control from here, rendering the topic data. #%]
  +[% PROCESS trailer.html.tmpl %]
  +
  +</body>
  +</html>
  +
   
   
   
  
  
  

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Codestriker-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/codestriker-commits

Reply via email to