Changeset View
Changeset View
Standalone View
Standalone View
src/applications/console/plugin/DarkConsoleRealtimePlugin.php
Show All 17 Lines | public function renderPanel() { | ||||
$frame = 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'); | $reconnect_label = pht('Reconnect'); | ||||
$replay_label = pht('Replay'); | |||||
$buttons = phutil_tag( | $buttons = phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'dark-console-realtime-actions', | 'class' => 'dark-console-realtime-actions', | ||||
), | ), | ||||
array( | array( | ||||
id(new PHUIButtonView()) | id(new PHUIButtonView()) | ||||
->setIcon('fa-refresh') | ->setIcon('fa-refresh') | ||||
->setColor(PHUIButtonView::GREY) | ->setColor(PHUIButtonView::GREY) | ||||
->setText($reconnect_label) | ->setText($reconnect_label) | ||||
->addSigil('dark-console-realtime-action') | ->addSigil('dark-console-realtime-action') | ||||
->setMetadata( | ->setMetadata( | ||||
array( | array( | ||||
'action' => 'reconnect', | 'action' => 'reconnect', | ||||
'label' => $reconnect_label, | 'label' => $reconnect_label, | ||||
)), | )), | ||||
id(new PHUIButtonView()) | |||||
->setIcon('fa-backward') | |||||
->setColor(PHUIButtonView::GREY) | |||||
->setText($replay_label) | |||||
->addSigil('dark-console-realtime-action') | |||||
->setMetadata( | |||||
array( | |||||
'action' => 'replay', | |||||
'label' => $replay_label, | |||||
)), | |||||
)); | )); | ||||
return phutil_tag( | return phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'dark-console-realtime', | |||||
), | ), | ||||
array( | array( | ||||
$buttons, | $buttons, | ||||
$frame, | $frame, | ||||
)); | )); | ||||
} | } | ||||
} | } |