mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-12 20:21:19 +08:00
Add id in diff link. #2712
This commit is contained in:
@@ -48,7 +48,7 @@ use yii\gii\CodeFile;
|
|||||||
<td class="file">
|
<td class="file">
|
||||||
<?= Html::a(Html::encode($file->getRelativePath()), ['preview', 'id' => $id, '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', 'id'=>$id, 'file' => $file->id], ['class' => 'diff-code label label-warning', 'data-title' => $file->getRelativePath()]) ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="action">
|
<td class="action">
|
||||||
|
|||||||
Reference in New Issue
Block a user