operation === CodeFile::OP_OVERWRITE) {
$trClass = 'table-warning';
} elseif ($file->operation === CodeFile::OP_SKIP) {
$trClass = 'table-active';
} elseif ($file->operation === CodeFile::OP_CREATE) {
$trClass = 'table-success';
} else {
$trClass = '';
}
?>
operation $trClass" ?>">
= Html::a(Html::encode($file->getRelativePath()), ['preview', 'id' => $id, 'file' => $file->id], ['class' => 'preview-code', 'data-title' => $file->getRelativePath()]) ?>
operation === CodeFile::OP_OVERWRITE): ?>
= Html::a('diff', ['diff', 'id' => $id, 'file' => $file->id], ['class' => 'diff-code badge badge-warning', 'data-title' => $file->getRelativePath()]) ?>
|
operation === CodeFile::OP_SKIP) {
echo 'unchanged';
} else {
echo $file->operation;
}
?>
|
operation === CodeFile::OP_SKIP) {
echo ' ';
} else {
echo Html::checkbox("answers[{$file->id}]", isset($answers) ? isset($answers[$file->id]) : ($file->operation === CodeFile::OP_CREATE));
}
?>
|