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:
Chad Little
2013-04-10 13:08:36 -07:00
parent 0b1410b1d7
commit c51f45fbcd
13 changed files with 56 additions and 40 deletions

View File

@@ -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,