Differential D20124 Diff 48065 src/applications/owners/controller/PhabricatorOwnersDetailController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/owners/controller/PhabricatorOwnersDetailController.php
Show First 20 Lines • Show All 188 Lines • ▼ Show 20 Lines | private function buildPackageDetailView( | ||||
$view->addProperty(pht('Dominion'), $name); | $view->addProperty(pht('Dominion'), $name); | ||||
$auto = $package->getAutoReview(); | $auto = $package->getAutoReview(); | ||||
$autoreview_map = PhabricatorOwnersPackage::getAutoreviewOptionsMap(); | $autoreview_map = PhabricatorOwnersPackage::getAutoreviewOptionsMap(); | ||||
$spec = idx($autoreview_map, $auto, array()); | $spec = idx($autoreview_map, $auto, array()); | ||||
$name = idx($spec, 'name', $auto); | $name = idx($spec, 'name', $auto); | ||||
$view->addProperty(pht('Auto Review'), $name); | $view->addProperty(pht('Auto Review'), $name); | ||||
if ($package->getAuditingEnabled()) { | $rule = $package->newAuditingRule(); | ||||
$auditing = pht('Enabled'); | $view->addProperty(pht('Auditing'), $rule->getDisplayName()); | ||||
} else { | |||||
$auditing = pht('Disabled'); | |||||
} | |||||
$view->addProperty(pht('Auditing'), $auditing); | |||||
$ignored = $package->getIgnoredPathAttributes(); | $ignored = $package->getIgnoredPathAttributes(); | ||||
$ignored = array_keys($ignored); | $ignored = array_keys($ignored); | ||||
if ($ignored) { | if ($ignored) { | ||||
$ignored = implode(', ', $ignored); | $ignored = implode(', ', $ignored); | ||||
} else { | } else { | ||||
$ignored = phutil_tag('em', array(), pht('None')); | $ignored = phutil_tag('em', array(), pht('None')); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines |