Index: trunk/extensions/CodeReview/CodeReview.i18n.php |
— | — | @@ -153,6 +153,7 @@ |
154 | 154 | 'repoadmin-edit-view' => 'ViewVC path:', |
155 | 155 | 'repoadmin-edit-button' => 'OK', |
156 | 156 | 'repoadmin-edit-sucess' => 'The repository "[[Special:Code/$1|$1]]" has been successfully modified.', |
| 157 | + 'repoadmin-nav' => 'repository administration', |
157 | 158 | |
158 | 159 | 'right-repoadmin' => 'Manage code repositories', |
159 | 160 | 'right-codereview-use' => 'Use of Special:Code', |
Index: trunk/extensions/CodeReview/ui/CodeRepoListView.php |
— | — | @@ -33,6 +33,9 @@ |
34 | 34 | $links[] = "[[Special:Code/$name/status|" . wfMsgHtml( 'code-status' ) . "]]"; |
35 | 35 | $links[] = "[[Special:Code/$name/releasenotes|" . wfMsgHtml( 'code-releasenotes' ) . "]]"; |
36 | 36 | $links[] = "[[Special:Code/$name/stats|" . wfMsgHtml( 'code-stats' ) . "]]"; |
| 37 | + if( $wgUser->isAllowed( 'repoadmin' ) ) { |
| 38 | + $links[] = "[[Special:RepoAdmin/$name|" . wfMsgHtml( 'repoadmin-nav' ) . "]]"; |
| 39 | + } |
37 | 40 | $text = "'''[[Special:Code/$name|$name]]''' " . wfMsg( 'parentheses', $wgLang->pipeList( $links ) ); |
38 | 41 | return $text; |
39 | 42 | } |