mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-12 11:40:19 +08:00
Update files.php
This commit is contained in:
@@ -46,7 +46,7 @@ use yii\gii\CodeFile;
|
|||||||
?>
|
?>
|
||||||
<tr class="<?= "$file->operation $trClass" ?>">
|
<tr class="<?= "$file->operation $trClass" ?>">
|
||||||
<td class="file">
|
<td class="file">
|
||||||
<?= Html::a(Html::encode($file->getRelativePath()), ['preview', 'file' => $file->id], ['class' => 'preview-code', 'data-title' => $file->getRelativePath()]) ?>
|
<?= Html::a(Html::encode($file->getRelativePath()), ['preview', 'id'=>$id, 'file' => $file->id], ['class' => 'preview-code', 'data-title' => $file->getRelativePath()]) ?>
|
||||||
<?php if ($file->operation === CodeFile::OP_OVERWRITE): ?>
|
<?php if ($file->operation === CodeFile::OP_OVERWRITE): ?>
|
||||||
<?= Html::a('diff', ['diff', 'file' => $file->id], ['class' => 'diff-code label label-warning', 'data-title' => $file->getRelativePath()]) ?>
|
<?= Html::a('diff', ['diff', 'file' => $file->id], ['class' => 'diff-code label label-warning', 'data-title' => $file->getRelativePath()]) ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user