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:
parent
30441fe208
commit
2e6332f456
1 changed files with 17 additions and 11 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue