Differential D20717 Diff 49434 src/applications/phortune/controller/account/PhortuneAccountManagersController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/controller/account/PhortuneAccountManagersController.php
<?php | <?php | ||||
final class PhortuneAccountManagersController | final class PhortuneAccountManagersController | ||||
extends PhortuneAccountProfileController { | extends PhortuneAccountProfileController { | ||||
public function handleRequest(AphrontRequest $request) { | protected function shouldRequireAccountEditCapability() { | ||||
$response = $this->loadAccount(); | return false; | ||||
if ($response) { | |||||
return $response; | |||||
} | } | ||||
protected function handleAccountRequest(AphrontRequest $request) { | |||||
$account = $this->getAccount(); | $account = $this->getAccount(); | ||||
$title = $account->getName(); | $title = $account->getName(); | ||||
$crumbs = $this->buildApplicationCrumbs(); | $crumbs = $this->buildApplicationCrumbs() | ||||
$crumbs->addTextCrumb(pht('Managers')); | ->addTextCrumb(pht('Managers')) | ||||
->setBorder(true); | |||||
$header = $this->buildHeaderView(); | $header = $this->buildHeaderView(); | ||||
$authority = $this->newAccountAuthorityView(); | |||||
$members = $this->buildMembersSection($account); | $members = $this->buildMembersSection($account); | ||||
$view = id(new PHUITwoColumnView()) | $view = id(new PHUITwoColumnView()) | ||||
->setHeader($header) | ->setHeader($header) | ||||
->setFooter(array( | ->setFooter( | ||||
array( | |||||
$authority, | |||||
$members, | $members, | ||||
)); | )); | ||||
$navigation = $this->buildSideNavView('managers'); | $navigation = $this->buildSideNavView('managers'); | ||||
return $this->newPage() | return $this->newPage() | ||||
->setTitle($title) | ->setTitle($title) | ||||
->setCrumbs($crumbs) | ->setCrumbs($crumbs) | ||||
->setNavigation($navigation) | ->setNavigation($navigation) | ||||
->appendChild($view); | ->appendChild($view); | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |