diff.php 402 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
 * @var mixed $diff
 */
?>
<div class="default-diff">
8 9 10 11 12 13 14
    <?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: ?>
        <div class="content"><?= $diff ?></div>
    <?php endif; ?>
Qiang Xue committed
15
</div>