Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/panel/PhabricatorSSHKeysSettingsPanel.php
Show All 39 Lines | public function processRequest(AphrontRequest $request) { | ||||
$panel = new PHUIObjectBoxView(); | $panel = new PHUIObjectBoxView(); | ||||
$header = new PHUIHeaderView(); | $header = new PHUIHeaderView(); | ||||
$ssh_actions = PhabricatorAuthSSHKeyTableView::newKeyActionsMenu( | $ssh_actions = PhabricatorAuthSSHKeyTableView::newKeyActionsMenu( | ||||
$viewer, | $viewer, | ||||
$user); | $user); | ||||
$header->setHeader(pht('SSH Public Keys')); | return $this->newBox(pht('SSH Public Keys'), $table, array($ssh_actions)); | ||||
$header->addActionLink($ssh_actions); | |||||
$panel->setHeader($header); | |||||
$panel->setTable($table); | |||||
$panel->setBackground(PHUIObjectBoxView::BLUE_PROPERTY); | |||||
return $panel; | |||||
} | } | ||||
} | } |