Provide a mobile application menu

Summary:
Adds a right-hand-side application menu, based roughly on `frame_v3.png`.

This has the same icon as the left menu until we get real design in, but is functionally reasonable.

Test Plan: {F26170} {F26169}

Reviewers: chad

Reviewed By: chad

CC: aran

Maniphest Tasks: T1960

Differential Revision: https://secure.phabricator.com/D4061
This commit is contained in:
epriestley
2012-12-07 13:34:44 -08:00
parent e3f6bbfff8
commit f910e38ecc
7 changed files with 200 additions and 34 deletions

View File

@@ -169,6 +169,11 @@ abstract class PhabricatorController extends AphrontController {
$view->appendChild($page->renderFooter());
}
$application_menu = $this->buildApplicationMenu();
if ($application_menu) {
$page->setApplicationMenu($application_menu);
}
$response = new AphrontWebpageResponse();
return $response->setContent($page->render());
}
@@ -238,4 +243,8 @@ abstract class PhabricatorController extends AphrontController {
return implode('<br />', $items);
}
protected function buildApplicationMenu() {
return null;
}
}