[Codestriker-commits] CVS update: codestriker/template/en/default editcomment.html.tmpl viewtopiccom
                
                Brought to you by:
                
                    sits
                    
                
            
            
        
        
        
    | 
      
      
      From: <si...@us...> - 2005-02-02 22:19:05
      
     | 
| Created Codestriker topic at: http://codestriker.sourceforge.net/cgi-bin/codestriker.pl?topic=9977080&action=view User: sits Date: 05/02/02 14:18:51 Modified: lib/Codestriker/Action ViewTopicComments.pm template/en/default editcomment.html.tmpl viewtopiccomments.html.tmpl Log: Minor changes for file/topic level comment handling Index: ViewTopicComments.pm =================================================================== RCS file: /cvsroot/codestriker/codestriker/lib/Codestriker/Action/ViewTopicComments.pm,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- ViewTopicComments.pm 30 Jan 2005 00:48:08 -0000 1.12 +++ ViewTopicComments.pm 2 Feb 2005 22:18:48 -0000 1.13 @@ -109,7 +109,8 @@ $last_filenumber = $comment->{filenumber}; } - if ($show_context ne "" && $show_context > 0) { + if ($show_context ne "" && $show_context > 0 && + $comment->{filenumber} != -1 && $comment->{fileline} != -1) { my $delta = Codestriker::Model::Delta->get_delta($topicid, $comment->{filenumber}, $comment->{fileline} , Index: editcomment.html.tmpl =================================================================== RCS file: /cvsroot/codestriker/codestriker/template/en/default/editcomment.html.tmpl,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- editcomment.html.tmpl 1 Feb 2005 05:45:35 -0000 1.17 +++ editcomment.html.tmpl 2 Feb 2005 22:18:50 -0000 1.18 @@ -253,9 +253,11 @@ [% END %] </TABLE> +[% IF context != '' %] <hr> <P>Context: (<A onClick="save_form_data()" HREF="[% inc_context_url %]">increase</A> | <A onClick="save_form_data()" HREF="[% dec_context_url %]">decrease)</A> [% context %] +[% END %] <SCRIPT type="text/javascript"> // Now that the form has loaded, set the form fields. Index: viewtopiccomments.html.tmpl =================================================================== RCS file: /cvsroot/codestriker/codestriker/template/en/default/viewtopiccomments.html.tmpl,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- viewtopiccomments.html.tmpl 30 Jan 2005 00:48:12 -0000 1.17 +++ viewtopiccomments.html.tmpl 2 Feb 2005 22:18:50 -0000 1.18 @@ -115,10 +115,10 @@ [%# Display the comment thread information #%] <TD> [% IF comment.filename != '' %] - <A HREF="[% comment.view_file %]">[% comment.filename %][% IF comment.fileline != -1 %]:[% comment.fileline %][% END %]</A> + <A HREF="[% comment.view_file %]">[% comment.filename %][% IF comment.fileline != -1 %]:[% comment.fileline %]</A>[% ELSE %]</A> (File Level)[% END %] [% IF allow_repositories != 0 %] | <A HREF="[% comment.view_parallel %]">Parallel</A> [% END %] [% ELSIF comment.fileline == -1 && comment.filenumber == -1 %] - Topic-level + Topic Level [% ELSE %] Line: [% comment.line %] [% END %] |