Path: blob/master/src/applications/config/controller/services/PhabricatorConfigDatabaseController.php
12262 views
<?php12abstract class PhabricatorConfigDatabaseController3extends PhabricatorConfigServicesController {45protected function renderIcon($status) {6switch ($status) {7case PhabricatorConfigStorageSchema::STATUS_OKAY:8$icon = 'fa-check-circle green';9break;10case PhabricatorConfigStorageSchema::STATUS_WARN:11$icon = 'fa-exclamation-circle yellow';12break;13case PhabricatorConfigStorageSchema::STATUS_FAIL:14default:15$icon = 'fa-times-circle red';16break;17}1819return id(new PHUIIconView())20->setIcon($icon);21}2223protected function renderAttr($attr, $issue) {24if ($issue) {25return phutil_tag(26'span',27array(28'style' => 'color: #aa0000;',29),30$attr);31} else {32return $attr;33}34}3536protected function renderBoolean($value) {37if ($value === null) {38return '';39} else if ($value === true) {40return pht('Yes');41} else {42return pht('No');43}44}4546}474849