diff.php 372 Bytes
Newer Older
Qiang Xue committed
1 2
<?php
/**
Alexander Makarov committed
3
 * @var yii\web\View $this
Qiang Xue committed
4 5 6 7 8 9 10 11 12
 * @var mixed $diff
 */
?>
<div class="default-diff">
	<?php if ($diff === false): ?>
		<div class="alert alert-danger">Diff is not supported for this file type.</div>
	<?php elseif (empty($diff)): ?>
		<div class="alert alert-success">Identical.</div>
	<?php else: ?>
Alexander Makarov committed
13
		<div class="content"><?= $diff ?></div>
Qiang Xue committed
14 15
	<?php endif; ?>
</div>