1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-24 06:20:56 +01:00

Fix Create New Repository link on Repositories

Summary: See <https://github.com/facebook/phabricator/pull/510>.

After the repository rework, the Create New Repository link in Repositories goes straight to creating a phabricator hosted repo(diffusion/create), rather than the chooser create/import (diffusion/new)

I updated it to point to diffusion/new the same as the New Repository link in Diffusion.

As a side note, the Repositories page could probably use the Crumbs treatment.

Reviewed by: epriestley
This commit is contained in:
Chris Colborne 2014-02-14 09:24:49 +10:00 committed by epriestley
parent b1ecedddc7
commit ac09a1a245

View file

@ -74,7 +74,7 @@ final class PhabricatorRepositoryListController
$panel = new AphrontPanelView();
$panel->setHeader('Repositories');
if ($is_admin) {
$panel->setCreateButton('Create New Repository', '/diffusion/create/');
$panel->setCreateButton('Create New Repository', '/diffusion/new/');
}
$panel->appendChild($table);
$panel->setNoBackground();