1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 23:02:42 +01:00

Fancier user menu

Summary: Builds out more UI to reinforce just who you are in this world... A perfect person.

Test Plan:
Look at myself a lot.

{F2435202}

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D17224
This commit is contained in:
Chad Little 2017-01-18 12:31:39 -08:00
parent 545dad319e
commit 35f4514e3f
4 changed files with 48 additions and 9 deletions

View file

@ -9,7 +9,7 @@ return array(
'names' => array( 'names' => array(
'conpherence.pkg.css' => '0b64e988', 'conpherence.pkg.css' => '0b64e988',
'conpherence.pkg.js' => '6249a1cf', 'conpherence.pkg.js' => '6249a1cf',
'core.pkg.css' => '85f51b68', 'core.pkg.css' => 'e75e4f9d',
'core.pkg.js' => 'f70cb91f', 'core.pkg.js' => 'f70cb91f',
'darkconsole.pkg.js' => 'e7393ebb', 'darkconsole.pkg.js' => 'e7393ebb',
'differential.pkg.css' => '9535a7e6', 'differential.pkg.css' => '9535a7e6',
@ -34,7 +34,7 @@ return array(
'rsrc/css/aphront/typeahead.css' => 'd4f16145', 'rsrc/css/aphront/typeahead.css' => 'd4f16145',
'rsrc/css/application/almanac/almanac.css' => 'dbb9b3af', 'rsrc/css/application/almanac/almanac.css' => 'dbb9b3af',
'rsrc/css/application/auth/auth.css' => '0877ed6e', 'rsrc/css/application/auth/auth.css' => '0877ed6e',
'rsrc/css/application/base/main-menu-view.css' => '7bc94bc2', 'rsrc/css/application/base/main-menu-view.css' => '8eac4166',
'rsrc/css/application/base/notification-menu.css' => '6a697e43', 'rsrc/css/application/base/notification-menu.css' => '6a697e43',
'rsrc/css/application/base/phabricator-application-launch-view.css' => '95351601', 'rsrc/css/application/base/phabricator-application-launch-view.css' => '95351601',
'rsrc/css/application/base/phui-theme.css' => '798c69b8', 'rsrc/css/application/base/phui-theme.css' => '798c69b8',
@ -798,7 +798,7 @@ return array(
'phabricator-flag-css' => 'bba8f811', 'phabricator-flag-css' => 'bba8f811',
'phabricator-keyboard-shortcut' => '1ae869f2', 'phabricator-keyboard-shortcut' => '1ae869f2',
'phabricator-keyboard-shortcut-manager' => '4a021c10', 'phabricator-keyboard-shortcut-manager' => '4a021c10',
'phabricator-main-menu-view' => '7bc94bc2', 'phabricator-main-menu-view' => '8eac4166',
'phabricator-nav-view-css' => 'b29426e9', 'phabricator-nav-view-css' => 'b29426e9',
'phabricator-notification' => 'ccf1cbf8', 'phabricator-notification' => 'ccf1cbf8',
'phabricator-notification-css' => '3f6c89c9', 'phabricator-notification-css' => '3f6c89c9',
@ -1502,9 +1502,6 @@ return array(
'owners-path-editor', 'owners-path-editor',
'javelin-behavior', 'javelin-behavior',
), ),
'7bc94bc2' => array(
'phui-theme-css',
),
'7cbe244b' => array( '7cbe244b' => array(
'javelin-install', 'javelin-install',
'javelin-util', 'javelin-util',
@ -1618,6 +1615,9 @@ return array(
'javelin-stratcom', 'javelin-stratcom',
'javelin-util', 'javelin-util',
), ),
'8eac4166' => array(
'phui-theme-css',
),
'8ff5e24c' => array( '8ff5e24c' => array(
'javelin-behavior', 'javelin-behavior',
'javelin-stratcom', 'javelin-stratcom',

View file

@ -86,14 +86,29 @@ final class PhabricatorHomeApplication extends PhabricatorApplication {
PhabricatorUser $viewer, PhabricatorUser $viewer,
$application) { $application) {
$person_to_show = id(new PHUIObjectItemView())
->setObjectName($viewer->getRealName())
->setSubHead($viewer->getUsername())
->setImageURI($viewer->getProfileImageURI());
$user_view = id(new PHUIObjectItemListView())
->setViewer($viewer)
->setFlush(true)
->setSimple(true)
->addItem($person_to_show)
->addClass('phabricator-core-user-profile-object');
$view = id(new PhabricatorActionListView()) $view = id(new PhabricatorActionListView())
->setViewer($viewer); ->setViewer($viewer);
// User Menu // User Menu
$view->addAction( $view->addAction(
id(new PhabricatorActionView()) id(new PhabricatorActionView())
->setName($viewer->getRealName()) ->appendChild($user_view));
->setLabel(true));
$view->addAction(
id(new PhabricatorActionView())
->setType(PhabricatorActionView::TYPE_DIVIDER));
$view->addAction( $view->addAction(
id(new PhabricatorActionView()) id(new PhabricatorActionView())
@ -131,6 +146,7 @@ final class PhabricatorHomeApplication extends PhabricatorApplication {
->setName(pht('Log Out %s', $viewer->getUsername())) ->setName(pht('Log Out %s', $viewer->getUsername()))
->addSigil('logout-item') ->addSigil('logout-item')
->setHref('/logout/') ->setHref('/logout/')
->setColor(PhabricatorActionView::RED)
->setWorkflow(true)); ->setWorkflow(true));
return $view; return $view;

View file

@ -284,7 +284,7 @@ final class PhabricatorActionView extends AphrontView {
'class' => 'phabricator-action-view-item', 'class' => 'phabricator-action-view-item',
'sigil' => $sigils, 'sigil' => $sigils,
), ),
array($icon, $this->name)); array($icon, $this->name, $this->renderChildren()));
} }
$classes = array(); $classes = array();

View file

@ -627,6 +627,29 @@ a.phabricator-core-user-menu .caret:before {
margin: 3px 0 0 0; margin: 3px 0 0 0;
} }
ul.phabricator-core-user-profile-object .phui-oi-objname {
font-size: {$biggestfontsize};
}
ul.phabricator-core-user-profile-object li.phui-oi,
ul.phabricator-core-user-profile-object .phui-oi-name,
ul.phabricator-core-user-profile-object .phui-oi-content,
ul.phabricator-core-user-profile-object .phui-oi-subhead {
padding: 0;
margin: 0;
}
ul.phabricator-core-user-profile-object.phui-oi-list-simple .phui-oi-image {
height: 36px;
width: 36px;
}
ul.phabricator-core-user-profile-object.phui-oi-list-simple
.phui-oi-content-box {
margin-left: 44px;
}
/* - Print --------------------------------------------------------------------- /* - Print ---------------------------------------------------------------------
*/ */