Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/controller/HeraldTranscriptController.php
Show First 20 Lines • Show All 350 Lines • ▼ Show 20 Lines | foreach ($rule_xscripts as $rule_xscript) { | ||||
->addMargin(PHUI::MARGIN_LARGE_LEFT); | ->addMargin(PHUI::MARGIN_LARGE_LEFT); | ||||
$rule_item->appendChild($action_box); | $rule_item->appendChild($action_box); | ||||
$log = $action_xscript->getAppliedReason(); | $log = $action_xscript->getAppliedReason(); | ||||
// Handle older transcripts which used a static string to record | // Handle older transcripts which used a static string to record | ||||
// action results. | // action results. | ||||
if (!is_array($log)) { | |||||
if ($xscript->getDryRun()) { | |||||
$action_list->addItem( | |||||
id(new PHUIStatusItemView()) | |||||
->setIcon('fa-ban', 'grey') | |||||
->setTarget(pht('Dry Run')) | |||||
->setNote( | |||||
pht( | |||||
'This was a dry run, so no actions were taken.'))); | |||||
continue; | |||||
} else if (!is_array($log)) { | |||||
$action_list->addItem( | $action_list->addItem( | ||||
id(new PHUIStatusItemView()) | id(new PHUIStatusItemView()) | ||||
->setIcon('fa-clock-o', 'grey') | ->setIcon('fa-clock-o', 'grey') | ||||
->setTarget(pht('Old Transcript')) | ->setTarget(pht('Old Transcript')) | ||||
->setNote( | ->setNote( | ||||
pht( | pht( | ||||
'This is an old transcript which uses an obsolete log '. | 'This is an old transcript which uses an obsolete log '. | ||||
'format. Detailed action information is not available.'))); | 'format. Detailed action information is not available.'))); | ||||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |