Differential D20474 Diff 48879 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 323 Lines • ▼ Show 20 Lines | private function addPanelHeaderActions( | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$panel = $this->getPanel(); | $panel = $this->getPanel(); | ||||
$context_phid = $this->getContextPHID(); | $context_phid = $this->getContextPHID(); | ||||
$actions = array(); | $actions = array(); | ||||
if ($panel) { | if ($panel) { | ||||
$panel_actions = $panel->newHeaderEditActions( | |||||
$viewer, | |||||
$context_phid); | |||||
if ($panel_actions) { | |||||
foreach ($panel_actions as $panel_action) { | |||||
$actions[] = $panel_action; | |||||
} | |||||
$actions[] = id(new PhabricatorActionView()) | |||||
->setType(PhabricatorActionView::TYPE_DIVIDER); | |||||
} | |||||
$panel_id = $panel->getID(); | $panel_id = $panel->getID(); | ||||
$edit_uri = "/dashboard/panel/edit/{$panel_id}/"; | $edit_uri = "/dashboard/panel/edit/{$panel_id}/"; | ||||
$params = array( | $params = array( | ||||
'contextPHID' => $context_phid, | 'contextPHID' => $context_phid, | ||||
); | ); | ||||
$edit_uri = new PhutilURI($edit_uri, $params); | $edit_uri = new PhutilURI($edit_uri, $params); | ||||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |