Differential D20735 Diff 49444 src/applications/phortune/controller/account/PhortuneAccountOrdersController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/controller/account/PhortuneAccountOrdersController.php
<?php | <?php | ||||
final class PhortuneAccountOrdersController | final class PhortuneAccountOrdersController | ||||
extends PhortuneAccountProfileController { | extends PhortuneAccountProfileController { | ||||
protected function shouldRequireAccountEditCapability() { | protected function shouldRequireAccountEditCapability() { | ||||
return false; | return false; | ||||
} | } | ||||
protected function handleAccountRequest(AphrontRequest $request) { | protected function handleAccountRequest(AphrontRequest $request) { | ||||
$account = $this->getAccount(); | $account = $this->getAccount(); | ||||
$title = $account->getName(); | $title = $account->getName(); | ||||
$crumbs = $this->buildApplicationCrumbs() | $crumbs = $this->buildApplicationCrumbs() | ||||
->addTextCrumb(pht('Order History')) | ->addTextCrumb(pht('Orders')) | ||||
->setBorder(true); | ->setBorder(true); | ||||
$header = $this->buildHeaderView(); | $header = $this->buildHeaderView(); | ||||
$authority = $this->newAccountAuthorityView(); | $authority = $this->newAccountAuthorityView(); | ||||
$order_history = $this->newRecentOrdersView($account, 100); | $order_history = $this->newRecentOrdersView($account, 100); | ||||
$view = id(new PHUITwoColumnView()) | $view = id(new PHUITwoColumnView()) | ||||
Show All 17 Lines |