mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 11:22:40 +01:00
2d01da14fd
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
34 lines
930 B
PHP
34 lines
930 B
PHP
<?php
|
|
|
|
abstract class DiffusionRepositoryEditController
|
|
extends DiffusionController {
|
|
|
|
public function buildApplicationCrumbs($is_main = false) {
|
|
$crumbs = parent::buildApplicationCrumbs();
|
|
|
|
if ($this->diffusionRequest) {
|
|
$repository = $this->getDiffusionRequest()->getRepository();
|
|
$repo_uri = $this->getRepositoryControllerURI($repository, '');
|
|
$edit_uri = $this->getRepositoryControllerURI($repository, 'edit/');
|
|
|
|
$crumbs->addCrumb(
|
|
id(new PhabricatorCrumbView())
|
|
->setName('r'.$repository->getCallsign())
|
|
->setHref($repo_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;
|
|
}
|
|
|
|
}
|