Index: trunk/extensions/CodeReview/CodeReview.i18n.php |
— | — | @@ -33,6 +33,7 @@ |
34 | 34 | 'code-rev-comment-submit' => 'Submit comment', |
35 | 35 | 'code-rev-comment-preview' => 'Preview', |
36 | 36 | 'code-rev-diff' => 'Diff', |
| 37 | + 'code-rev-diff-link' => 'diff', |
37 | 38 | |
38 | 39 | 'codereview-reply-link' => 'reply', |
39 | 40 | |
Index: trunk/extensions/CodeReview/CodeRevisionView.php |
— | — | @@ -106,20 +106,22 @@ |
107 | 107 | $desc = wfMsgHtml( 'code-rev-modified-'.strtolower( $action ) ); |
108 | 108 | $encPath = htmlspecialchars( $path ); |
109 | 109 | $viewvc = $this->mRepo->getViewVcBase(); |
110 | | - $diff = wfMsgHtml('code-rev-diff'); |
| 110 | + $diff = ''; |
111 | 111 | if( $viewvc ) { |
112 | 112 | $rev = $this->mRev->getId(); |
113 | 113 | $prev = $rev - 1; |
114 | 114 | $safePath = wfUrlEncode( $path ); |
115 | 115 | $link = $this->mSkin->makeExternalLink( "$viewvc$safePath?view=markup&pathrev=$rev", $encPath ); |
116 | 116 | if( $action !== 'A' ) { |
117 | | - $diff = $this->mSkin->makeExternalLink( "$viewvc$safePath?&pathrev=$rev&r1=$prev&r2=$rev", |
118 | | - wfMsgHtml('code-rev-diff') ); |
| 117 | + $diff = ' (' . |
| 118 | + $this->mSkin->makeExternalLink( "$viewvc$safePath?&pathrev=$rev&r1=$prev&r2=$rev", |
| 119 | + wfMsgHtml('code-rev-diff-link') ) . |
| 120 | + ')'; |
119 | 121 | } |
120 | 122 | } else { |
121 | 123 | $link = $encPath; |
122 | 124 | } |
123 | | - return "<li>$link ($desc) ($diff)</li>\n"; |
| 125 | + return "<li>$link ($desc)$diff</li>\n"; |
124 | 126 | } |
125 | 127 | |
126 | 128 | function formatTags() { |