Differential D10519 Diff 25284 src/applications/config/controller/PhabricatorConfigDatabaseController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/controller/PhabricatorConfigDatabaseController.php
Show First 20 Lines • Show All 682 Lines • ▼ Show 20 Lines | private function renderKey( | ||||
return $this->buildResponse($title, $box); | return $this->buildResponse($title, $box); | ||||
} | } | ||||
private function renderIcon($status) { | private function renderIcon($status) { | ||||
switch ($status) { | switch ($status) { | ||||
case PhabricatorConfigStorageSchema::STATUS_OKAY: | case PhabricatorConfigStorageSchema::STATUS_OKAY: | ||||
$icon = 'fa-check-circle green'; | $icon = 'fa-check-circle green'; | ||||
break; | break; | ||||
case PhabricatorConfigStorageSchema::STATUS_NOTE: | |||||
$icon = 'fa-info-circle blue'; | |||||
break; | |||||
case PhabricatorConfigStorageSchema::STATUS_WARN: | case PhabricatorConfigStorageSchema::STATUS_WARN: | ||||
$icon = 'fa-exclamation-circle yellow'; | $icon = 'fa-exclamation-circle yellow'; | ||||
break; | break; | ||||
case PhabricatorConfigStorageSchema::STATUS_FAIL: | case PhabricatorConfigStorageSchema::STATUS_FAIL: | ||||
default: | default: | ||||
$icon = 'fa-times-circle red'; | $icon = 'fa-times-circle red'; | ||||
break; | break; | ||||
} | } | ||||
Show All 31 Lines | if (!$issues) { | ||||
->setIcon(PHUIStatusItemView::ICON_ACCEPT, 'green') | ->setIcon(PHUIStatusItemView::ICON_ACCEPT, 'green') | ||||
->setTarget(pht('No Schema Issues'))); | ->setTarget(pht('No Schema Issues'))); | ||||
} else { | } else { | ||||
foreach ($issues as $issue) { | foreach ($issues as $issue) { | ||||
$note = PhabricatorConfigStorageSchema::getIssueDescription($issue); | $note = PhabricatorConfigStorageSchema::getIssueDescription($issue); | ||||
$status = PhabricatorConfigStorageSchema::getIssueStatus($issue); | $status = PhabricatorConfigStorageSchema::getIssueStatus($issue); | ||||
switch ($status) { | switch ($status) { | ||||
case PhabricatorConfigStorageSchema::STATUS_NOTE: | |||||
$icon = PHUIStatusItemView::ICON_INFO; | |||||
$color = 'blue'; | |||||
break; | |||||
case PhabricatorConfigStorageSchema::STATUS_WARN: | case PhabricatorConfigStorageSchema::STATUS_WARN: | ||||
$icon = PHUIStatusItemView::ICON_WARNING; | $icon = PHUIStatusItemView::ICON_WARNING; | ||||
$color = 'yellow'; | $color = 'yellow'; | ||||
break; | break; | ||||
case PhabricatorConfigStorageSchema::STATUS_FAIL: | case PhabricatorConfigStorageSchema::STATUS_FAIL: | ||||
default: | default: | ||||
$icon = PHUIStatusItemView::ICON_REJECT; | $icon = PHUIStatusItemView::ICON_REJECT; | ||||
$color = 'red'; | $color = 'red'; | ||||
Show All 27 Lines |