Provide detailed status information about repository state/progress
Summary: Replace the blanket "daemons not running" warning with a lot more specific detail, to try to make it easier for users to figure out how to set up repositories correctly. The next change here will add some additional status information from the daemons, so this panel can report results in greater detail. Test Plan: See screenshots. Reviewers: btrahan, chad Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D7458
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
abstract class DiffusionRepositoryEditController
|
||||
extends DiffusionController {
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
public function buildApplicationCrumbs($is_main = false) {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
if ($this->diffusionRequest) {
|
||||
@@ -16,10 +16,16 @@ abstract class DiffusionRepositoryEditController
|
||||
->setName('r'.$repository->getCallsign())
|
||||
->setHref($repo_uri));
|
||||
|
||||
$crumbs->addCrumb(
|
||||
id(new PhabricatorCrumbView())
|
||||
->setName(pht('Edit'))
|
||||
->setHref($edit_uri));
|
||||
if ($is_main) {
|
||||
$crumbs->addCrumb(
|
||||
id(new PhabricatorCrumbView())
|
||||
->setName(pht('Edit Repository')));
|
||||
} else {
|
||||
$crumbs->addCrumb(
|
||||
id(new PhabricatorCrumbView())
|
||||
->setName(pht('Edit'))
|
||||
->setHref($edit_uri));
|
||||
}
|
||||
}
|
||||
|
||||
return $crumbs;
|
||||
|
||||
Reference in New Issue
Block a user