3 abstract class PhabricatorDashboardProfileController
4 extends PhabricatorController
{
8 public function setDashboard(PhabricatorDashboard
$dashboard) {
9 $this->dashboard
= $dashboard;
13 public function getDashboard() {
14 return $this->dashboard
;
17 protected function buildHeaderView() {
18 $viewer = $this->getViewer();
19 $dashboard = $this->getDashboard();
20 $id = $dashboard->getID();
22 if ($dashboard->isArchived()) {
23 $status_icon = 'fa-ban';
24 $status_color = 'dark';
26 $status_icon = 'fa-check';
27 $status_color = 'bluegrey';
31 PhabricatorDashboard
::getStatusNameMap(),
32 $dashboard->getStatus());
34 return id(new PHUIHeaderView())
36 ->setHeader($dashboard->getName())
37 ->setPolicyObject($dashboard)
38 ->setStatus($status_icon, $status_color, $status_name)
39 ->setHeaderIcon($dashboard->getIcon());
42 protected function buildApplicationCrumbs() {
43 $crumbs = parent
::buildApplicationCrumbs();
44 $crumbs->setBorder(true);
46 $dashboard = $this->getDashboard();
48 $crumbs->addTextCrumb($dashboard->getName(), $dashboard->getURI());