mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-23 12:09:12 +01:00
Summary: As per discussion, this primes the existing mobile menu / menu button for "phabricator" and "application" menus. Design here is very rough, I'm just trying to get everything laid in functionally first. It's based on `frame_v3.png` but missing a lot of touches. Test Plan: {F26143} {F26144} Reviewers: chad Reviewed By: chad CC: aran Maniphest Tasks: T1960 Differential Revision: https://secure.phabricator.com/D4058
29 lines
668 B
PHP
29 lines
668 B
PHP
<?php
|
|
|
|
final class PhabricatorApplicationAuth extends PhabricatorApplication {
|
|
|
|
public function shouldAppearInLaunchView() {
|
|
return false;
|
|
}
|
|
|
|
public function buildMainMenuItems(
|
|
PhabricatorUser $user,
|
|
PhabricatorController $controller = null) {
|
|
|
|
$items = array();
|
|
|
|
if ($user->isLoggedIn()) {
|
|
$item = new PhabricatorMenuItemView();
|
|
$item->setName(pht('Log Out'));
|
|
$item->setIcon('logout');
|
|
$item->setWorkflow(true);
|
|
$item->setHref('/logout/');
|
|
$item->setSortOrder(2.0);
|
|
$item->setSelected(($controller instanceof PhabricatorLogoutController));
|
|
$items[] = $item;
|
|
}
|
|
|
|
return $items;
|
|
}
|
|
|
|
}
|