r79632 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79631‎ | r79632 | r79633 >
Date:22:55, 4 January 2011
Author:reedy
Status:ok
Tags:
Comment:
* (bug 26567) Allow showing comments by a given user, add "my comments" link to subtitle

Groundwork already done, this is just the addition of the link, and the i18n entry
Modified paths:
  • /trunk/extensions/CodeReview/CodeReview.i18n.php (modified) (history)
  • /trunk/extensions/CodeReview/ui/CodeRepoListView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/CodeReview.i18n.php
@@ -28,6 +28,7 @@
2929 'code-notes' => 'recent comments',
3030 'code-statuschanges' => 'status changes',
3131 'code-mycommits' => 'my commits',
 32+ 'code-mycomments' => 'my comments',
3233 'code-authors' => 'authors',
3334 'code-status' => 'states',
3435 'code-tags' => 'tags',
Index: trunk/extensions/CodeReview/ui/CodeRepoListView.php
@@ -27,6 +27,7 @@
2828 $author = $repo->wikiUserAuthor( $wgUser->getName() );
2929 if ( $author !== false ) {
3030 $links[] = "[[Special:Code/$name/author/$author|" . wfMsgHtml( 'code-mycommits' ) . "]]";
 31+ $links[] = "[[Special:Code/$name/comments/$author|" . wfMsgHtml( 'code-mycomments' ) . "]]";
3132 }
3233 }
3334 $links[] = "[[Special:Code/$name/tag|" . wfMsgHtml( 'code-tags' ) . "]]";

Status & tagging log