Differential D8917 Diff 21164 src/applications/dashboard/paneltype/PhabricatorDashboardPanelType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/paneltype/PhabricatorDashboardPanelType.php
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | public function renderPanel( | ||||
PhabricatorUser $viewer, | PhabricatorUser $viewer, | ||||
PhabricatorDashboardPanel $panel) { | PhabricatorDashboardPanel $panel) { | ||||
return id(new PHUIObjectBoxView()) | return id(new PHUIObjectBoxView()) | ||||
->setHeaderText($panel->getName()) | ->setHeaderText($panel->getName()) | ||||
->appendChild(pht('TODO: Panel content goes here.')); | ->appendChild(pht('TODO: Panel content goes here.')); | ||||
} | } | ||||
public function shouldRenderAsync() { | |||||
// TODO: For now, just make these things random so we can catch anything | |||||
// that breaks. | |||||
return (mt_rand(0, 1) == 1); | |||||
} | |||||
} | } |