1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +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',
));
$panel = new AphrontPanelView();
$panel->addButton(
phutil_tag(
'a',
array(
'href' => $this->getPanelURI('?edit=true'),
'class' => 'green button',
),
pht('Add New Public Key')));
$panel->setHeader(pht('SSH Public Keys'));
$panel = new PHUIObjectBoxView();
$header = new PHUIHeaderView();
$icon = id(new PHUIIconView())
->setSpriteSheet(PHUIIconView::SPRITE_ICONS)
->setSpriteIcon('new');
$button = new PHUIButtonView();
$button->setText(pht('Add New Public Key'));
$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->setNoBackground();
return $panel;
}