Add id in diff link. #2712

This commit is contained in:
Thiago Talma
2014-03-12 13:20:40 -03:00
parent 7f757d45dc
commit c7a85e8ff9

View File

@@ -48,7 +48,7 @@ use yii\gii\CodeFile;
<td class="file">
<?= 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): ?>
<?= 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; ?>
</td>
<td class="action">