Modernize MetaMTA

Summary:
  - Add an Application.
  - Move routes to the application.
  - Move nav out of tabs (which no longer exist).
  - Fix a couple of random things.

Test Plan: Viewed sent/received mail logs. Performed send/receive tests. Viewed email details.

Reviewers: btrahan, vrana

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T631, T1569

Differential Revision: https://secure.phabricator.com/D3255
This commit is contained in:
epriestley
2012-08-13 12:37:06 -07:00
parent 29e176fe53
commit b2f12a09b5
10 changed files with 108 additions and 68 deletions

View File

@@ -149,17 +149,18 @@ abstract class PhabricatorController extends AphrontController {
if (!($view instanceof AphrontSideNavFilterView)) {
$nav = new AphrontSideNavFilterView();
if ($application) {
$nav->setCurrentApplication($application);
}
$nav->setUser($this->getRequest()->getUser());
$nav->setFlexNav(true);
$nav->setShowApplicationMenu(true);
$nav->appendChild($view);
$view = $nav;
}
if ($application) {
$view->setCurrentApplication($application);
}
$view->setUser($this->getRequest()->getUser());
$view->setFlexNav(true);
$view->setShowApplicationMenu(true);
$page->appendChild($view);
$response = new AphrontWebpageResponse();