Add crumbs to Differential

Summary: Adds very basic crumbs to Differential, to prevent regression when we drop the application menu. I'll do a more proper pass at this but want to unblock landing the commit sequence for all this stuff.

Test Plan: Looked at detail view and list view, saw crumbs, clicked them.

Reviewers: chad

Reviewed By: chad

CC: aran

Maniphest Tasks: T1960

Differential Revision: https://secure.phabricator.com/D4111
This commit is contained in:
epriestley
2012-12-07 13:37:45 -08:00
parent f306cab653
commit cd2e39025e
6 changed files with 42 additions and 16 deletions

View File

@@ -24,4 +24,17 @@ abstract class DifferentialController extends PhabricatorController {
return $response->setContent($page->render());
}
public function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$create_uri = new PhutilURI('/differential/diff/create/');
$crumbs->addAction(
id(new PhabricatorMenuItemView())
->setHref($this->getApplicationURI('/diff/create/'))
->setName('Create Diff')
->setIcon('create'));
return $crumbs;
}
}