Skip to content

Commit

Permalink
Update pull.php
Browse files Browse the repository at this point in the history
Signed-off-by: ArchBlood <[email protected]>
  • Loading branch information
ArchBlood authored Feb 20, 2024
1 parent 8c93ec0 commit f922300
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions views/git/pull.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,23 @@
</div>

<div class="panel-body">
<?= Html::tag('h2', 'Result'); ?>
<p><?= $message ?></p>

<?php if (Yii::$app->session->hasFlash('success')): ?>
<div class="alert alert-success" role="alert">
<?= Yii::$app->session->getFlash('success') ?>
</div>
<?php endif; ?>

<?php if (Yii::$app->session->hasFlash('error')): ?>
<div class="alert alert-danger" role="alert">
<?= Yii::$app->session->getFlash('error') ?>
</div>
<?php endif; ?>

<?php if (!empty($output)): ?>
<?= Html::tag('h2', 'Output'); ?>
<pre><?= Html::encode(implode("\n", $output)) ?></pre>
<div class="output-container">
<?= Html::tag('h2', 'Output'); ?>
<pre><?= Html::encode(implode("\n", $output)) ?></pre>
</div>
<?php endif; ?>
</div>
</div>

0 comments on commit f922300

Please sign in to comment.