Differential D20362 Diff 48631 src/applications/search/menuitem/PhabricatorDashboardProfileMenuItem.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/menuitem/PhabricatorDashboardProfileMenuItem.php
Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | protected function newMenuItemViewList( | ||||
if ($dashboard) { | if ($dashboard) { | ||||
if ($dashboard->isArchived()) { | if ($dashboard->isArchived()) { | ||||
$icon = 'fa-ban'; | $icon = 'fa-ban'; | ||||
$name = $this->getDisplayName($config); | $name = $this->getDisplayName($config); | ||||
} else { | } else { | ||||
$icon = $dashboard->getIcon(); | $icon = $dashboard->getIcon(); | ||||
$name = $this->getDisplayName($config); | $name = $this->getDisplayName($config); | ||||
$is_disabled = false; | $is_disabled = false; | ||||
$action_uri = '/dashboard/arrange/'.$dashboard->getID().'/'; | $action_uri = $dashboard->getURI(); | ||||
} | } | ||||
} else { | } else { | ||||
$icon = 'fa-ban'; | $icon = 'fa-ban'; | ||||
if ($this->getDashboardHandle()->getPolicyFiltered()) { | if ($this->getDashboardHandle()->getPolicyFiltered()) { | ||||
$name = pht('Restricted Dashboard'); | $name = pht('Restricted Dashboard'); | ||||
} else { | } else { | ||||
$name = pht('Invalid Dashboard'); | $name = pht('Invalid Dashboard'); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |