r74255 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74254‎ | r74255 | r74256 >
Date:15:13, 4 October 2010
Author:demon
Status:ok
Tags:
Comment:
Add quick link to repoadmin if you have the rights
Modified paths:
  • /trunk/extensions/CodeReview/CodeReview.i18n.php (modified) (history)
  • /trunk/extensions/CodeReview/ui/CodeRepoListView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/CodeReview.i18n.php
@@ -153,6 +153,7 @@
154154 'repoadmin-edit-view' => 'ViewVC path:',
155155 'repoadmin-edit-button' => 'OK',
156156 'repoadmin-edit-sucess' => 'The repository "[[Special:Code/$1|$1]]" has been successfully modified.',
 157+ 'repoadmin-nav' => 'repository administration',
157158
158159 'right-repoadmin' => 'Manage code repositories',
159160 'right-codereview-use' => 'Use of Special:Code',
Index: trunk/extensions/CodeReview/ui/CodeRepoListView.php
@@ -33,6 +33,9 @@
3434 $links[] = "[[Special:Code/$name/status|" . wfMsgHtml( 'code-status' ) . "]]";
3535 $links[] = "[[Special:Code/$name/releasenotes|" . wfMsgHtml( 'code-releasenotes' ) . "]]";
3636 $links[] = "[[Special:Code/$name/stats|" . wfMsgHtml( 'code-stats' ) . "]]";
 37+ if( $wgUser->isAllowed( 'repoadmin' ) ) {
 38+ $links[] = "[[Special:RepoAdmin/$name|" . wfMsgHtml( 'repoadmin-nav' ) . "]]";
 39+ }
3740 $text = "'''[[Special:Code/$name|$name]]''' " . wfMsg( 'parentheses', $wgLang->pipeList( $links ) );
3841 return $text;
3942 }

Status & tagging log