Add actions to mobile crumbs
Summary: Adds in the ActionList into Crumbs for mobile on many applications. Test Plan: Tested each application except probably drydock since not sure how to test that. Also cleaned up Ponder a little. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5648
This commit is contained in:
@@ -22,15 +22,7 @@ final class PhabricatorFileInfoController extends PhabricatorFileController {
|
||||
}
|
||||
|
||||
$this->loadHandles(array($file->getAuthorPHID()));
|
||||
|
||||
$phid = $file->getPHID();
|
||||
|
||||
$crumbs = $this->buildApplicationCrumbs();
|
||||
$crumbs->addCrumb(
|
||||
id(new PhabricatorCrumbView())
|
||||
->setName('F'.$file->getID())
|
||||
->setHref($this->getApplicationURI("/info/{$phid}/")));
|
||||
|
||||
$header = id(new PhabricatorHeaderView())
|
||||
->setHeader($file->getName());
|
||||
|
||||
@@ -45,6 +37,13 @@ final class PhabricatorFileInfoController extends PhabricatorFileController {
|
||||
$actions = $this->buildActionView($file);
|
||||
$properties = $this->buildPropertyView($file);
|
||||
|
||||
$crumbs = $this->buildApplicationCrumbs();
|
||||
$crumbs->setActionList($actions);
|
||||
$crumbs->addCrumb(
|
||||
id(new PhabricatorCrumbView())
|
||||
->setName('F'.$file->getID())
|
||||
->setHref($this->getApplicationURI("/info/{$phid}/")));
|
||||
|
||||
return $this->buildApplicationPage(
|
||||
array(
|
||||
$crumbs,
|
||||
|
||||
Reference in New Issue
Block a user