1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 08:42:41 +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( return array(
'names' => 'names' =>
array( array(
'core.pkg.css' => '979bfb39', 'core.pkg.css' => '5ebae357',
'core.pkg.js' => 'c907bd96', 'core.pkg.js' => 'c907bd96',
'darkconsole.pkg.js' => 'ca8671ce', 'darkconsole.pkg.js' => 'ca8671ce',
'differential.pkg.css' => '827749c1', 'differential.pkg.css' => '827749c1',
@ -132,7 +132,7 @@ return array(
'rsrc/css/phui/phui-feed-story.css' => '3a59c2cf', 'rsrc/css/phui/phui-feed-story.css' => '3a59c2cf',
'rsrc/css/phui/phui-form-view.css' => '3179980c', 'rsrc/css/phui/phui-form-view.css' => '3179980c',
'rsrc/css/phui/phui-form.css' => 'b78ec020', '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-icon.css' => '29e83226',
'rsrc/css/phui/phui-info-panel.css' => '27ea50a1', 'rsrc/css/phui/phui-info-panel.css' => '27ea50a1',
'rsrc/css/phui/phui-list.css' => '2edb76cf', 'rsrc/css/phui/phui-list.css' => '2edb76cf',
@ -736,7 +736,7 @@ return array(
'phui-feed-story-css' => '3a59c2cf', 'phui-feed-story-css' => '3a59c2cf',
'phui-form-css' => 'b78ec020', 'phui-form-css' => 'b78ec020',
'phui-form-view-css' => '3179980c', 'phui-form-view-css' => '3179980c',
'phui-header-view-css' => '875d0260', 'phui-header-view-css' => '1a93f1d9',
'phui-icon-view-css' => '29e83226', 'phui-icon-view-css' => '29e83226',
'phui-info-panel-css' => '27ea50a1', 'phui-info-panel-css' => '27ea50a1',
'phui-list-view-css' => '2edb76cf', 'phui-list-view-css' => '2edb76cf',

View file

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

View file

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