protected function buildApplicationCrumbs() { $crumbs = parent::buildApplicationCrumbs(); $viewer = $this->getRequest()->getUser(); if ($viewer->getIsAdmin()) { $crumbs->addAction(id(new PHUIListItemView())->setName(pht('Create New User'))->setHref($this->getApplicationURI('create/'))->setIcon('fa-plus-square')); } return $crumbs; }
protected function buildApplicationCrumbs() { $crumbs = parent::buildApplicationCrumbs(); $user = $this->getUser(); if ($user) { $crumbs->addTextCrumb($user->getUsername(), urisprintf('/p/%s/', $user->getUsername())); } return $crumbs; }
protected function buildApplicationCrumbs() { $crumbs = parent::buildApplicationCrumbs(); $crumbs->addTextCrumb(pht('Invites'), $this->getApplicationURI('invite/')); return $crumbs; }