Differential D17311 Diff 41635 src/applications/dashboard/engine/PhabricatorDashboardPanelRenderingEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/engine/PhabricatorDashboardPanelRenderingEngine.php
Show First 20 Lines • Show All 249 Lines • ▼ Show 20 Lines | private function renderPanelHeader() { | ||||
} | } | ||||
return $header; | return $header; | ||||
} | } | ||||
private function addPanelHeaderActions( | private function addPanelHeaderActions( | ||||
PHUIHeaderView $header) { | PHUIHeaderView $header) { | ||||
$panel = $this->getPanel(); | $panel = $this->getPanel(); | ||||
if (!$panel) { | |||||
return $header; | |||||
} | |||||
$dashboard_id = $this->getDashboardID(); | $dashboard_id = $this->getDashboardID(); | ||||
$edit_uri = id(new PhutilURI( | $edit_uri = id(new PhutilURI( | ||||
'/dashboard/panel/edit/'.$panel->getID().'/')); | '/dashboard/panel/edit/'.$panel->getID().'/')); | ||||
if ($dashboard_id) { | if ($dashboard_id) { | ||||
$edit_uri->setQueryParam('dashboardID', $dashboard_id); | $edit_uri->setQueryParam('dashboardID', $dashboard_id); | ||||
} | } | ||||
$action_edit = id(new PHUIIconView()) | $action_edit = id(new PHUIIconView()) | ||||
->setIcon('fa-pencil') | ->setIcon('fa-pencil') | ||||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |