3 final class PhabricatorNotificationStatusView
extends AphrontTagView
{
5 protected function getTagAttributes() {
7 $this->setID(celerity_generate_unique_node_id());
10 Javelin
::initBehavior(
13 'nodeID' => $this->getID(),
15 'setup' => pht('Setting Up Client'),
16 'open' => pht('Connected'),
17 'closed' => pht('Disconnected'),
21 'icon' => 'fa-circle',
25 'icon' => 'fa-circle',
29 'icon' => 'fa-circle',
36 'class' => 'aphlict-connection-status',
40 protected function getTagContent() {
41 $have = PhabricatorEnv
::getEnvConfig('notification.servers');
43 $icon = id(new PHUIIconView())
44 ->setIcon('fa-circle-o yellow');
45 $text = pht('Connecting...');
49 'class' => 'connection-status-text '.
50 'aphlict-connection-status-connecting',
57 $text = pht('Notification server not enabled');
58 $icon = id(new PHUIIconView())
59 ->setIcon('fa-circle-o grey');
63 'class' => 'connection-status-text '.
64 'aphlict-connection-status-notenabled',