[Codestriker-commits] CVS update: codestriker/template/en/default viewtopic.html.tmpl
Brought to you by:
sits
|
From: <si...@us...> - 2008-03-13 00:56:06
|
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, \@comments, $tabwidth,
- $repository, \@filenames,
- \@revisions, \@binary,
- \@numchanges, -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>
+
|