Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/console/plugin/DarkConsoleErrorLogPlugin.php
| <?php | <?php | ||||
| /** | |||||
| * @group console | |||||
| */ | |||||
| final class DarkConsoleErrorLogPlugin extends DarkConsolePlugin { | final class DarkConsoleErrorLogPlugin extends DarkConsolePlugin { | ||||
| public function getName() { | public function getName() { | ||||
| $count = count($this->getData()); | $count = count($this->getData()); | ||||
| if ($count) { | if ($count) { | ||||
| return pht('Error Log (%d)', $count); | return pht('Error Log (%d)', $count); | ||||
| } | } | ||||
| return pht('Error Log'); | return pht('Error Log'); | ||||
| ▲ Show 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | public function renderPanel() { | ||||
| return phutil_tag( | return phutil_tag( | ||||
| 'div', | 'div', | ||||
| array(), | array(), | ||||
| array( | array( | ||||
| phutil_tag('div', array(), $table->render()), | phutil_tag('div', array(), $table->render()), | ||||
| phutil_tag('pre', array('class' => 'PhabricatorMonospaced'), $details), | phutil_tag('pre', array('class' => 'PhabricatorMonospaced'), $details), | ||||
| )); | )); | ||||
| } | } | ||||
| } | } | ||||