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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user