Index: trunk/extensions/CodeReview/ui/CodeView.php |
— | — | @@ -9,6 +9,11 @@ |
10 | 10 | */ |
11 | 11 | var $mRepo; |
12 | 12 | |
| 13 | + /** |
| 14 | + * @var Skin |
| 15 | + */ |
| 16 | + var $skin; |
| 17 | + |
13 | 18 | function __construct( $repo ) { |
14 | 19 | $this->mRepo = ( $repo instanceof CodeRepository ) |
15 | 20 | ? $repo |
Index: trunk/extensions/CodeReview/ui/CodeRevisionListView.php |
— | — | @@ -145,6 +145,10 @@ |
146 | 146 | $wgOut->redirect( $this->getPager()->getTitle()->getFullURL( $fields ) ); |
147 | 147 | } |
148 | 148 | |
| 149 | + /** |
| 150 | + * @param SvnRevTablePager $pager |
| 151 | + * @return string |
| 152 | + */ |
149 | 153 | protected function buildBatchInterface( $pager ) { |
150 | 154 | global $wgUser; |
151 | 155 | |
Index: trunk/extensions/CodeReview/ui/CodeRevisionView.php |
— | — | @@ -123,7 +123,16 @@ |
124 | 124 | |
125 | 125 | $html = ''; |
126 | 126 | if ( $this->mPath != '' ) { |
127 | | - $html .= wfMsgExt( 'code-browsing-path', 'parse', $this->mPath ); |
| 127 | + $links = array(); |
| 128 | + foreach( explode( '|', $this->mPath ) as $path ) { |
| 129 | + $links[] = $this->skin->link( |
| 130 | + SpecialPage::getTitleFor( 'Code', $this->mRepo->getName() ), |
| 131 | + $path, |
| 132 | + array(), |
| 133 | + array( 'path' => $path ) |
| 134 | + ); |
| 135 | + } |
| 136 | + $html .= wfMsgExt( 'code-browsing-path', array( 'parse', 'replaceafter' ), $wgLang->commaList( $links ) ); |
128 | 137 | } |
129 | 138 | # Output form |
130 | 139 | $html .= Xml::openElement( 'form', array( 'action' => $special->getLocalUrl(), 'method' => 'post' ) ); |