Straighten out some crumbs and links for workboards
Summary: Ref T1344. Minor tweaks for crumb/link stuff -- @mikn has been doing some work here recently and I want to unblock him. Test Plan: Viewed board; viewed column edit screen. Reviewers: chad, btrahan Reviewed By: chad CC: mikn, aran Maniphest Tasks: T1344 Differential Revision: https://secure.phabricator.com/D7937
This commit is contained in:
@@ -21,21 +21,4 @@ abstract class PhabricatorProjectController extends PhabricatorController {
|
||||
return $nav;
|
||||
}
|
||||
|
||||
public function buildApplicationCrumbs() {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
$can_create = $this->hasApplicationCapability(
|
||||
ProjectCapabilityCreateProjects::CAPABILITY);
|
||||
|
||||
$crumbs->addAction(
|
||||
id(new PHUIListItemView())
|
||||
->setName(pht('Create Project'))
|
||||
->setHref($this->getApplicationURI('create/'))
|
||||
->setIcon('create')
|
||||
->setWorkflow(!$can_create)
|
||||
->setDisabled(!$can_create));
|
||||
|
||||
return $crumbs;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user