Index: trunk/extensions/CodeReview/CodeRevisionView.php |
— | — | @@ -108,14 +108,16 @@ |
109 | 109 | $viewvc = $this->mRepo->getViewVcBase(); |
110 | 110 | if( $viewvc ) { |
111 | 111 | $rev = $this->mRev->getId(); |
| 112 | + $prev = $rev - 1; |
112 | 113 | $safePath = wfUrlEncode( $path ); |
113 | | - $link = $this->mSkin->makeExternalLink( |
114 | | - "$viewvc$safePath?view=markup&pathrev=$rev", |
115 | | - $encPath ); |
| 114 | + $link = $this->mSkin->makeExternalLink( "$viewvc$safePath?view=markup&pathrev=$rev", $encPath ); |
| 115 | + $diff = $this->mSkin->makeExternalLink( "$viewvc$safePath?&pathrev=$rev&r1=$prev&r2=$rev", |
| 116 | + wfMsgHtml('code-rev-diff') ); |
116 | 117 | } else { |
117 | 118 | $link = $encPath; |
| 119 | + $diff = wfMsgHtml('code-rev-diff'); |
118 | 120 | } |
119 | | - return "<li>$link ($desc)</li>\n"; |
| 121 | + return "<li>$link ($desc) ($diff)</li>\n"; |
120 | 122 | } |
121 | 123 | |
122 | 124 | function formatTags() { |