3 final class PhabricatorSSHKeysSettingsPanel
extends PhabricatorSettingsPanel
{
5 public function isManagementPanel() {
6 if ($this->getUser()->getIsMailingList()) {
13 public function getPanelKey() {
17 public function getPanelName() {
18 return pht('SSH Public Keys');
21 public function getPanelMenuIcon() {
22 return 'fa-file-text-o';
25 public function getPanelGroupKey() {
26 return PhabricatorSettingsAuthenticationPanelGroup
::PANELGROUPKEY
;
29 public function processRequest(AphrontRequest
$request) {
30 $user = $this->getUser();
31 $viewer = $request->getUser();
33 $keys = id(new PhabricatorAuthSSHKeyQuery())
35 ->withObjectPHIDs(array($user->getPHID()))
39 $table = id(new PhabricatorAuthSSHKeyTableView())
43 ->setNoDataString(pht("You haven't added any SSH Public Keys."));
45 $panel = new PHUIObjectBoxView();
46 $header = new PHUIHeaderView();
48 $ssh_actions = PhabricatorAuthSSHKeyTableView
::newKeyActionsMenu(
52 return $this->newBox(pht('SSH Public Keys'), $table, array($ssh_actions));