@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+17 -11
+17 -11
src/applications/settings/panel/PhabricatorSettingsPanelSSHKeys.php
··· 224 224 'action', 225 225 )); 226 226 227 - $panel = new AphrontPanelView(); 228 - $panel->addButton( 229 - phutil_tag( 230 - 'a', 231 - array( 232 - 'href' => $this->getPanelURI('?edit=true'), 233 - 'class' => 'green button', 234 - ), 235 - pht('Add New Public Key'))); 236 - $panel->setHeader(pht('SSH Public Keys')); 227 + $panel = new PHUIObjectBoxView(); 228 + $header = new PHUIHeaderView(); 229 + 230 + $icon = id(new PHUIIconView()) 231 + ->setSpriteSheet(PHUIIconView::SPRITE_ICONS) 232 + ->setSpriteIcon('new'); 233 + 234 + $button = new PHUIButtonView(); 235 + $button->setText(pht('Add New Public Key')); 236 + $button->setHref($this->getPanelURI('?edit=true')); 237 + $button->setTag('a'); 238 + $button->setIcon($icon); 239 + 240 + $header->setHeader(pht('SSH Public Keys')); 241 + $header->addActionLink($button); 242 + 243 + $panel->setHeader($header); 237 244 $panel->appendChild($table); 238 - $panel->setNoBackground(); 239 245 240 246 return $panel; 241 247 }