Changeset View
Changeset View
Standalone View
Standalone View
src/applications/console/plugin/DarkConsoleRealtimePlugin.php
| Show All 9 Lines | public function getColor() { | ||||
| return null; | return null; | ||||
| } | } | ||||
| public function getDescription() { | public function getDescription() { | ||||
| return pht('Debugging console for real-time notifications.'); | return pht('Debugging console for real-time notifications.'); | ||||
| } | } | ||||
| public function renderPanel() { | public function renderPanel() { | ||||
| return phutil_tag( | $frame = phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'id' => 'dark-console-realtime-log', | 'id' => 'dark-console-realtime-log', | ||||
| 'class' => 'dark-console-log-frame', | 'class' => 'dark-console-log-frame', | ||||
| )); | )); | ||||
| $reconnect_label = pht('Reconnect'); | |||||
| $buttons = phutil_tag( | |||||
| 'div', | |||||
| array( | |||||
| 'class' => 'dark-console-realtime-actions', | |||||
| ), | |||||
| array( | |||||
| id(new PHUIButtonView()) | |||||
| ->setIcon('fa-refresh') | |||||
| ->setColor(PHUIButtonView::GREY) | |||||
| ->setText($reconnect_label) | |||||
| ->addSigil('dark-console-realtime-action') | |||||
| ->setMetadata( | |||||
| array( | |||||
| 'action' => 'reconnect', | |||||
| 'label' => $reconnect_label, | |||||
| )), | |||||
| )); | |||||
| return phutil_tag( | |||||
| 'div', | |||||
| array( | |||||
| ), | |||||
| array( | |||||
| $buttons, | |||||
| $frame, | |||||
| )); | |||||
| } | } | ||||
| } | } | ||||