[Codestriker-commits] CVS update: codestriker CHANGELOG
Brought to you by:
sits
From: <si...@us...> - 2008-09-27 03:42:05
|
User: sits Date: 08/09/26 20:41:50 Modified: template/en/default viewtopiccomments.html.tmpl lib/Codestriker/Action ViewTopicComments.pm . CHANGELOG Log: * Added "Diff" link for each comment on the list comments page so that for those reviews which aren't linked to an SCM, it is still possible to quickly link back to the coloured topic text. Index: viewtopiccomments.html.tmpl =================================================================== RCS file: /cvsroot/codestriker/codestriker/template/en/default/viewtopiccomments.html.tmpl,v retrieving revision 1.32 retrieving revision 1.33 diff -u -r1.32 -r1.33 --- viewtopiccomments.html.tmpl 27 Sep 2008 03:28:56 -0000 1.32 +++ viewtopiccomments.html.tmpl 27 Sep 2008 03:41:49 -0000 1.33 @@ -116,6 +116,7 @@ <TD> [% IF comment.filename != '' %] <A HREF="[% comment.view_file %]">[% comment.filename %][% IF comment.fileline != -1 %]:[% comment.fileline %]</A>[% ELSE %]</A> (File Level)[% END %] + | <A HREF="[% comment.view_diff %]">Diff</A> [% IF allow_repositories != 0 %] | <A HREF="[% comment.view_parallel %]">Parallel</A> [% END %] [% ELSIF comment.fileline == -1 && comment.filenumber == -1 %] Topic Level Index: ViewTopicComments.pm =================================================================== RCS file: /cvsroot/codestriker/codestriker/lib/Codestriker/Action/ViewTopicComments.pm,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- ViewTopicComments.pm 6 Sep 2008 00:31:45 -0000 1.22 +++ ViewTopicComments.pm 27 Sep 2008 03:41:49 -0000 1.23 @@ -98,8 +98,15 @@ filenumber => $comment->{filenumber}, new => $comment->{filenew}, line => $comment->{fileline}, mode => $mode); + my $view_diff_file = + $url_builder->view_url(topicid => $topicid, projectid => $projectid, + fview => $comment->{filenumber}, + filenumber => $comment->{filenumber}, + new => $comment->{filenew}, + line => $comment->{fileline}, mode => $mode); $comment->{view_file} = "javascript: myOpen('$new_file','CVS')"; + $comment->{view_diff} = "javascript: myOpen('$view_diff_file','CVS')"; my $parallel = $new_file; $comment->{view_parallel} = "javascript: myOpen('$parallel','CVS')"; Index: CHANGELOG =================================================================== RCS file: /cvsroot/codestriker/codestriker/CHANGELOG,v retrieving revision 1.269 retrieving revision 1.270 diff -u -r1.269 -r1.270 --- CHANGELOG 25 Sep 2008 09:11:23 -0000 1.269 +++ CHANGELOG 27 Sep 2008 03:41:50 -0000 1.270 @@ -49,7 +49,11 @@ rob...@us.... * ScmBug integration now works correctly when deleted files are - present in a Subversion changeset. + present in a Subversion changeset. + +* Added "Diff" link for each comment on the list comments page so that for + those reviews which aren't linked to an SCM, it is still possible + to quickly link back to the coloured topic text. Version 1.9.6 |