1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 21:32:43 +01:00

Update Help for newPage

Summary: Swaps over to `newPage` and `newDialog`

Test Plan: Unsure how to actually pull these up?

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D15617
This commit is contained in:
Chad Little 2016-04-04 21:04:58 -07:00
parent 4761dba0cd
commit 57ed6b749a
3 changed files with 6 additions and 17 deletions

View file

@ -38,14 +38,10 @@ final class PhabricatorHelpDocumentationController
$crumbs = $this->buildApplicationCrumbs(); $crumbs = $this->buildApplicationCrumbs();
$crumbs->addTextCrumb($title); $crumbs->addTextCrumb($title);
return $this->buildApplicationPage( return $this->newPage()
array( ->setTitle($title)
$crumbs, ->setCrumbs($crumbs)
$list, ->appendChild($list);
),
array(
'title' => $title,
));
} }

View file

@ -10,8 +10,7 @@ final class PhabricatorHelpEditorProtocolController
public function handleRequest(AphrontRequest $request) { public function handleRequest(AphrontRequest $request) {
$viewer = $request->getViewer(); $viewer = $request->getViewer();
$dialog = id(new AphrontDialogView()) return $this->newDialog()
->setUser($viewer)
->setMethod('GET') ->setMethod('GET')
->setSubmitURI('/settings/panel/display/') ->setSubmitURI('/settings/panel/display/')
->setTitle(pht('Unsupported Editor Protocol')) ->setTitle(pht('Unsupported Editor Protocol'))
@ -24,9 +23,6 @@ final class PhabricatorHelpEditorProtocolController
phutil_tag('tt', array(), 'uri.allowed-editor-protocols'))) phutil_tag('tt', array(), 'uri.allowed-editor-protocols')))
->addSubmitButton(pht('Change Settings')) ->addSubmitButton(pht('Change Settings'))
->addCancelButton('/'); ->addCancelButton('/');
return id(new AphrontDialogResponse())
->setDialog($dialog);
} }
public static function hasAllowedProtocol($uri) { public static function hasAllowedProtocol($uri) {

View file

@ -57,14 +57,11 @@ final class PhabricatorHelpKeyboardShortcutController
array('class' => 'keyboard-shortcut-help'), array('class' => 'keyboard-shortcut-help'),
$rows); $rows);
$dialog = id(new AphrontDialogView()) return $this->newDialog()
->setUser($viewer)
->setTitle(pht('Keyboard Shortcuts')) ->setTitle(pht('Keyboard Shortcuts'))
->appendChild($table) ->appendChild($table)
->addCancelButton('#', pht('Close')); ->addCancelButton('#', pht('Close'));
return id(new AphrontDialogResponse())
->setDialog($dialog);
} }
} }