1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-25 14:08:19 +01:00

Update SSH Keys Settings layout

Summary: Uses new ObjectBox with table.

Test Plan: clicked on add new key, clicked edit key, everythink works

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: Korvin, epriestley, aran

Differential Revision: https://secure.phabricator.com/D7904
This commit is contained in:
Chad Little 2014-01-07 16:16:30 -08:00
parent 30441fe208
commit 2e6332f456

View file

@ -224,18 +224,24 @@ final class PhabricatorSettingsPanelSSHKeys
'action', 'action',
)); ));
$panel = new AphrontPanelView(); $panel = new PHUIObjectBoxView();
$panel->addButton( $header = new PHUIHeaderView();
phutil_tag(
'a', $icon = id(new PHUIIconView())
array( ->setSpriteSheet(PHUIIconView::SPRITE_ICONS)
'href' => $this->getPanelURI('?edit=true'), ->setSpriteIcon('new');
'class' => 'green button',
), $button = new PHUIButtonView();
pht('Add New Public Key'))); $button->setText(pht('Add New Public Key'));
$panel->setHeader(pht('SSH Public Keys')); $button->setHref($this->getPanelURI('?edit=true'));
$button->setTag('a');
$button->setIcon($icon);
$header->setHeader(pht('SSH Public Keys'));
$header->addActionLink($button);
$panel->setHeader($header);
$panel->appendChild($table); $panel->appendChild($table);
$panel->setNoBackground();
return $panel; return $panel;
} }