1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-28 16:30:59 +01:00

Update Email Address setting page

Summary: Uses new PHUIObjectBox table hotness.

Test Plan: Add address, make primary, remove.

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: Korvin, epriestley, aran

Differential Revision: https://secure.phabricator.com/D7907
This commit is contained in:
Chad Little 2014-01-08 12:42:55 -08:00
parent 8867e50d63
commit 1cb8f0b393
3 changed files with 21 additions and 16 deletions

View file

@ -7,7 +7,7 @@
return array(
'names' =>
array(
'core.pkg.css' => '979bfb39',
'core.pkg.css' => '5ebae357',
'core.pkg.js' => 'c907bd96',
'darkconsole.pkg.js' => 'ca8671ce',
'differential.pkg.css' => '827749c1',
@ -132,7 +132,7 @@ return array(
'rsrc/css/phui/phui-feed-story.css' => '3a59c2cf',
'rsrc/css/phui/phui-form-view.css' => '3179980c',
'rsrc/css/phui/phui-form.css' => 'b78ec020',
'rsrc/css/phui/phui-header-view.css' => '875d0260',
'rsrc/css/phui/phui-header-view.css' => '1a93f1d9',
'rsrc/css/phui/phui-icon.css' => '29e83226',
'rsrc/css/phui/phui-info-panel.css' => '27ea50a1',
'rsrc/css/phui/phui-list.css' => '2edb76cf',
@ -736,7 +736,7 @@ return array(
'phui-feed-story-css' => '3a59c2cf',
'phui-form-css' => 'b78ec020',
'phui-form-view-css' => '3179980c',
'phui-header-view-css' => '875d0260',
'phui-header-view-css' => '1a93f1d9',
'phui-icon-view-css' => '29e83226',
'phui-info-panel-css' => '27ea50a1',
'phui-list-view-css' => '2edb76cf',

View file

@ -130,21 +130,25 @@ final class PhabricatorSettingsPanelEmailAddresses
$editable,
));
$view = new AphrontPanelView();
$view = new PHUIObjectBoxView();
$header = new PHUIHeaderView();
$header->setHeader(pht('Email Addresses'));
if ($editable) {
$view->addButton(
javelin_tag(
'a',
array(
'href' => $uri->alter('new', 'true'),
'class' => 'green button',
'sigil' => 'workflow',
),
pht('Add New Address')));
$icon = id(new PHUIIconView())
->setSpriteSheet(PHUIIconView::SPRITE_ICONS)
->setSpriteIcon('new');
$button = new PHUIButtonView();
$button->setText(pht('Add New Address'));
$button->setTag('a');
$button->setHref($uri->alter('new', 'true'));
$button->setIcon($icon);
$button->addSigil('workflow');
$header->addActionLink($button);
}
$view->setHeader(pht('Email Addresses'));
$view->setHeader($header);
$view->appendChild($table);
$view->setNoBackground();
return $view;
}

View file

@ -44,7 +44,8 @@ body .phui-header-shell.phui-bleed-header
position: relative;
}
.phui-header-view a {
.phui-header-view a,
.phui-header-view a.simple {
color: {$darkbluetext};
}