r83281 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83280‎ | r83281 | r83282 >
Date:14:31, 5 March 2011
Author:reedy
Status:ok
Tags:
Comment:
* (bug 27091) Special:Code "No repository configured!" message should link to Special:RepoAdmin
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
@@ -23,6 +23,9 @@
2424 'code-prop-changes' => 'Status & tagging log',
2525 'codereview-desc' => '[[Special:Code|Code review tool]] with [[Special:RepoAdmin|Subversion support]]',
2626 'code-no-repo' => 'No repository configured!',
 27+ 'code-create-repo' => 'Go to [[Special:RepoAdmin|RepoAdmin]] to create a Repository',
 28+ 'code-need-repoadmin-rights' => 'repoadmin rights are needed to be able to create a Repository',
 29+ 'code-need-group-with-rights' => 'No group with repoadmin rights exist. Please add one to be able to add a new Repository',
2730 'code-repo-not-found' => "Repository '''$1''' does not exist!",
2831 'code-load-diff' => 'Loading diff…',
2932 'code-notes' => 'recent comments',
Index: trunk/extensions/CodeReview/ui/CodeRepoListView.php
@@ -8,7 +8,18 @@
99 global $wgOut;
1010 $repos = CodeRepository::getRepoList();
1111 if ( !count( $repos ) ) {
 12+ global $wgUser;
1213 $wgOut->addWikiMsg( 'code-no-repo' );
 14+
 15+ if ( $wgUser->isAllowed( 'repoadmin' ) ) {
 16+ $wgOut->addWikiMsg( 'code-create-repo' );
 17+ } else {
 18+ $wgOut->addWikiMsg( 'code-need-repoadmin-rights' );
 19+
 20+ if ( !count( User::getGroupsWithPermission( 'repoadmin' ) ) ) {
 21+ $wgOut->addWikiMsg( 'code-need-group-with-rights' );
 22+ }
 23+ }
1324 return;
1425 }
1526 $text = '';

Follow-up revisions

RevisionCommit summaryAuthorDate
r85033MFT more extension revs: r82601, r82654, r82698, r82755, r82756, r82759, r829...demon18:49, 30 March 2011

Status & tagging log