Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/editor/DiffusionCommitEditEngine.php
Show First 20 Lines • Show All 130 Lines • ▼ Show 20 Lines | if ($reason !== false) { | ||||
case null: | case null: | ||||
$desc = pht('Yes'); | $desc = pht('Yes'); | ||||
break; | break; | ||||
default: | default: | ||||
$desc = pht('Unknown'); | $desc = pht('Unknown'); | ||||
break; | break; | ||||
} | } | ||||
$doc_href = PhabricatorEnv::getDoclink('Diffusion User Guide: Autoclose'); | $doc_href = PhabricatorEnv::getDoclink( | ||||
'Diffusion User Guide: Permanent Refs'); | |||||
$doc_link = phutil_tag( | $doc_link = phutil_tag( | ||||
'a', | 'a', | ||||
array( | array( | ||||
'href' => $doc_href, | 'href' => $doc_href, | ||||
'target' => '_blank', | 'target' => '_blank', | ||||
), | ), | ||||
pht('Learn More')); | pht('Learn More')); | ||||
$fields[] = id(new PhabricatorStaticEditField()) | $fields[] = id(new PhabricatorStaticEditField()) | ||||
->setLabel(pht('Autoclose?')) | ->setLabel(pht('Published?')) | ||||
->setValue(array($desc, " \xC2\xB7 ", $doc_link)); | ->setValue(array($desc, " \xC2\xB7 ", $doc_link)); | ||||
} | } | ||||
$actions = DiffusionCommitActionTransaction::loadAllActions(); | $actions = DiffusionCommitActionTransaction::loadAllActions(); | ||||
$actions = msortv($actions, 'getCommitActionOrderVector'); | $actions = msortv($actions, 'getCommitActionOrderVector'); | ||||
foreach ($actions as $key => $action) { | foreach ($actions as $key => $action) { | ||||
$fields[] = $action->newEditField($object, $viewer); | $fields[] = $action->newEditField($object, $viewer); | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |