User: sits    
  Date: 08/06/26 17:19:10

  Modified:    template/en/default viewtopic.html.tmpl
  Removed:     lib/Codestriker/Template/Plugin CommentLine.pm
  Log:
  Remove the use of the CommentLine tt plugin.  It was no longer used, and it 
was causing issues when running under mod_perl.
  
  
  
  Index: CommentLine.pm
  ===================================================================
  RCS file: CommentLine.pm
  diff -N CommentLine.pm
  --- CommentLine.pm    28 Feb 2008 11:01:58 -0000      1.1
  +++ /dev/null 1 Jan 1970 00:00:00 -0000
  @@ -1,78 +0,0 @@
  -package Codestriker::Template::Plugin::CommentLine;
  -
  -# Template toolkit plugin module for outputting the anchor text
  -# for a specific line.
  -
  -use Template::Plugin::Filter;
  -use Codestriker;
  -use Codestriker::Http::UrlBuilder;
  -
  -use base qw( Template::Plugin::Filter );
  -
  -# Indicate that the filter should be re-created on each filter call.
  -our $DYNAMIC = 1;
  -
  -sub filter {
  -    my ($self, $text, $args, $conf) = @_;
  -
  -    $conf = $self->merge_config($conf);
  -
  -    # Constructor parameters.
  -    my $query = $conf->{query};
  -    my $comment_hash = %{ $conf->{comment_hash} };
  -    my $comment_location_map = %{ $conf->{comment_location_map} };
  -    my $mode = $conf->{mode};
  -
  -    # Filter parameters.
  -    my $filenumber = $conf->{filenumber};
  -    my $line = $conf->{line};
  -    my $new = $conf->{new};
  -
  -    # Determine the comment class to use.
  -    my $comment_class = $mode eq 'coloured' ? 'com' : 'smscom';
  -    my $no_comment_class = $mode eq 'coloured' ? 'nocom' : 'smsnocom';
  -
  -    # Determine the anchor and edit URL for this line number.
  -    my $anchor = "$filenumber|$line|$new";
  -    my $edit_url = "javascript:eo('$filenumber','$line','$new')";
  -
  -    # Set the anchor to this line number.
  -    my $params = {};
  -    $params->{name} = $anchor;
  -
  -    # Only set the href attribute if the comment is in open state.
  -    if (!Codestriker::topic_readonly($self->{topic_state})) {
  -     $params->{href} = $edit_url;
  -    }
  -
  -    # If a comment exists on this line, set span and the overlib hooks onto
  -    # it.
  -    my $comment_number = undef;
  -    if (exists $comment_hash{$anchor}) {
  -     # Determine what comment number this anchor refers to.
  -     $comment_number = $comment_location_map{$anchor};
  -
  -     if (defined $comment_class) {
  -         $text = $query->span({-id=>"c$comment_number"}, "") .
  -             $query->span({-class=>$comment_class}, $text);
  -     }
  -
  -     # Determine what the next comment in line is.
  -     my $index = -1;
  -     my @comment_locations = @{ $self->{comment_locations} };
  -     for ($index = 0; $index <= $#comment_locations; $index++) {
  -         last if $anchor eq $comment_locations[$index];
  -     }
  -
  -     $params->{onmouseover} = "return 
overlib(comment_text[$index],STICKY,DRAGGABLE,ALTCUT);";
  -     $params->{onmouseout} = "return nd();";
  -    } else {
  -     if (defined $no_comment_class) {
  -         $text = $query->span({-class=>$no_comment_class}, $text);
  -     }
  -    }
  -
  -    return $query->a($params, $text);
  -}
  -
  -1;
  
  
  
  
  
  Index: viewtopic.html.tmpl
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/template/en/default/viewtopic.html.tmpl,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- viewtopic.html.tmpl       24 Jun 2008 04:51:30 -0000      1.51
  +++ viewtopic.html.tmpl       27 Jun 2008 00:19:10 -0000      1.52
  @@ -82,10 +82,6 @@
   
   </table>
   
  -[% USE CommentLine query = query comment_hash = comment_hash
  -                   comment_location_map = comment_location_map
  -                   mode = mode %]
  -
   <p>
   <span class="general_comment">[[% add_general_comment_element %]] to 
topic.</span>
   <p>
  
  
  

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