Differential D17689 Diff 42549 src/applications/phortune/controller/account/PhortuneAccountProfileController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/controller/account/PhortuneAccountProfileController.php
| Show All 26 Lines | $header = id(new PHUIHeaderView()) | ||||
| ->setUser($viewer) | ->setUser($viewer) | ||||
| ->setHeader($title) | ->setHeader($title) | ||||
| ->setHeaderIcon('fa-user-circle'); | ->setHeaderIcon('fa-user-circle'); | ||||
| return $header; | return $header; | ||||
| } | } | ||||
| protected function buildApplicationCrumbs() { | protected function buildApplicationCrumbs() { | ||||
| $account = $this->getAccount(); | |||||
| $id = $account->getID(); | |||||
| $account_uri = $this->getApplicationURI("/{$id}/"); | |||||
| $crumbs = parent::buildApplicationCrumbs(); | $crumbs = parent::buildApplicationCrumbs(); | ||||
| $crumbs->addTextCrumb($account->getName(), $account_uri); | |||||
| $crumbs->setBorder(true); | $crumbs->setBorder(true); | ||||
| $account = $this->getAccount(); | |||||
| if ($account) { | |||||
| $crumbs->addTextCrumb($account->getName(), $account->getURI()); | |||||
| } | |||||
| return $crumbs; | return $crumbs; | ||||
| } | } | ||||
| protected function buildSideNavView($filter = null) { | protected function buildSideNavView($filter = null) { | ||||
| $viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
| $account = $this->getAccount(); | $account = $this->getAccount(); | ||||
| $id = $account->getID(); | $id = $account->getID(); | ||||
| Show All 35 Lines | |||||