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->addTextCrumb($title);
return $this->buildApplicationPage(
array(
$crumbs,
$list,
),
array(
'title' => $title,
));
return $this->newPage()
->setTitle($title)
->setCrumbs($crumbs)
->appendChild($list);
}

View file

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

View file

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