Differential D16575 Diff 39896 src/applications/diffusion/management/DiffusionRepositoryStatusManagementPanel.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/management/DiffusionRepositoryStatusManagementPanel.php
Show First 20 Lines • Show All 353 Lines • ▼ Show 20 Lines | if ($is_cluster) { | ||||
'Working copy %s has been deleted, or is not '. | 'Working copy %s has been deleted, or is not '. | ||||
'readable by the webserver. Make this directory '. | 'readable by the webserver. Make this directory '. | ||||
'readable. If it has been deleted, the daemons should '. | 'readable. If it has been deleted, the daemons should '. | ||||
'restore it automatically.', | 'restore it automatically.', | ||||
phutil_tag('tt', array(), $local_path)))); | phutil_tag('tt', array(), $local_path)))); | ||||
return $view; | return $view; | ||||
} | } | ||||
break; | break; | ||||
case PhabricatorRepositoryStatusMessage::CODE_WORKING: | default: | ||||
$view->addItem( | $view->addItem( | ||||
id(new PHUIStatusItemView()) | id(new PHUIStatusItemView()) | ||||
->setIcon(PHUIStatusItemView::ICON_CLOCK, 'green') | ->setIcon(PHUIStatusItemView::ICON_CLOCK, 'green') | ||||
->setTarget(pht('Initializing Working Copy')) | ->setTarget(pht('Initializing Working Copy')) | ||||
->setNote(pht('Daemons are initializing the working copy.'))); | ->setNote(pht('Daemons are initializing the working copy.'))); | ||||
return $view; | return $view; | ||||
default: | |||||
$view->addItem( | |||||
id(new PHUIStatusItemView()) | |||||
->setIcon(PHUIStatusItemView::ICON_WARNING, 'red') | |||||
->setTarget(pht('Unknown Init Status')) | |||||
->setNote($message->getStatusCode())); | |||||
return $view; | |||||
} | } | ||||
} else { | } else { | ||||
$view->addItem( | $view->addItem( | ||||
id(new PHUIStatusItemView()) | id(new PHUIStatusItemView()) | ||||
->setIcon(PHUIStatusItemView::ICON_CLOCK, 'orange') | ->setIcon(PHUIStatusItemView::ICON_CLOCK, 'orange') | ||||
->setTarget(pht('No Working Copy Yet')) | ->setTarget(pht('No Working Copy Yet')) | ||||
->setNote( | ->setNote( | ||||
pht('Waiting for daemons to build a working copy.'))); | pht('Waiting for daemons to build a working copy.'))); | ||||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |