Differential D10585 Diff 25583 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 187 Lines • ▼ Show 20 Lines | if (!$id) { | ||||
$id = celerity_generate_unique_node_id(); | $id = celerity_generate_unique_node_id(); | ||||
} | } | ||||
return javelin_tag( | return javelin_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'id' => $id, | 'id' => $id, | ||||
'sigil' => 'dashboard-panel', | 'sigil' => 'dashboard-panel', | ||||
'meta' => array( | 'meta' => array( | ||||
'objectPHID' => $panel->getPHID()), | 'objectPHID' => $panel->getPHID(), | ||||
'class' => 'dashboard-panel'), | ), | ||||
'class' => 'dashboard-panel', | |||||
), | |||||
array( | array( | ||||
$header, | $header, | ||||
$content)); | $content, | ||||
)); | |||||
} | } | ||||
private function renderPanelHeader() { | private function renderPanelHeader() { | ||||
$panel = $this->getPanel(); | $panel = $this->getPanel(); | ||||
switch ($this->getHeaderMode()) { | switch ($this->getHeaderMode()) { | ||||
case self::HEADER_MODE_NONE: | case self::HEADER_MODE_NONE: | ||||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |