Index: trunk/extensions/CodeReview/CodeReview.i18n.php |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | 'code-rev-modified-c' => 'copied', |
28 | 28 | 'code-rev-modified-d' => 'deleted', |
29 | 29 | 'code-rev-modified-m' => 'modified', |
30 | | - 'code-rev-comment-by' => 'Comment by', |
| 30 | + 'code-rev-comment-by' => 'Comment by $1', |
31 | 31 | 'code-rev-comment-submit' => 'Submit comment', |
32 | 32 | 'code-rev-comment-preview' => 'Preview', |
33 | 33 | 'code-rev-diff' => 'Diff', |
Index: trunk/extensions/CodeReview/SpecialCode.php |
— | — | @@ -357,16 +357,23 @@ |
358 | 358 | function formatComment( $comment, $replyForm='' ) { |
359 | 359 | global $wgOut, $wgLang; |
360 | 360 | $linker = new CodeCommentLinkerWiki( $this->mRepo ); |
| 361 | + |
| 362 | + $repo = $this->mRepo->getName(); |
| 363 | + $rev = $this->mRev->getId(); |
| 364 | + $perma = SpecialPage::getTitleFor( 'Code', "$repo/$rev" ); |
| 365 | + $perma->setFragment( "#c{$comment->id}" ); |
| 366 | + |
361 | 367 | return Xml::openElement( 'div', |
362 | 368 | array( |
363 | 369 | 'class' => 'mw-codereview-comment', |
364 | 370 | 'id' => 'c' . intval( $comment->id ), |
365 | 371 | 'style' => $this->commentStyle( $comment ) ) ) . |
366 | 372 | '<div class="mw-codereview-comment-meta">' . |
367 | | - wfMsgHtml( 'code-rev-comment-by' ) . ' ' . |
368 | | - $this->mSkin->userLink( $comment->user, $comment->userText ) . |
369 | | - $this->mSkin->userToolLinks( $comment->user, $comment->userText ) . |
370 | | - ' ' . |
| 373 | + $this->mSkin->link( $perma, "#" ) . |
| 374 | + wfMsgHtml( 'code-rev-comment-by', |
| 375 | + $this->mSkin->userLink( $comment->user, $comment->userText ) . |
| 376 | + $this->mSkin->userToolLinks( $comment->user, $comment->userText ) ) . |
| 377 | + ' ' . |
371 | 378 | $wgLang->timeanddate( $comment->timestamp ) . |
372 | 379 | ' ' . |
373 | 380 | $this->commentReplyLink( $comment->id ) . |