diff.php 381 Bytes
Newer Older
Qiang Xue committed
1 2 3 4 5 6 7 8 9 10 11 12
<?php
/**
 * @var yii\base\View $this
 * @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: ?>
Qiang Xue committed
13
		<div class="content"><?php echo $diff; ?></div>
Qiang Xue committed
14 15
	<?php endif; ?>
</div>