mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-13 04:38:03 +08:00
@@ -7,6 +7,7 @@ Yii Framework 2 gii extension Change Log
|
||||
- Bug #1405: fixed disambiguation of relation names generated by gii (qiangxue)
|
||||
- Bug #1904: Fixed autocomplete to work with underscore inputs "_" (tonydspaniard)
|
||||
- Bug #2298: Fixed the bug that Gii controller generator did not allow digit in the controller ID (qiangxue)
|
||||
- Bug #2712: Fixed missing id in code file preview url (klevron)
|
||||
- Bug: fixed controller in crud template to avoid returning query in findModel() (cebe)
|
||||
- Enh #1624: generate rules for unique indexes (lucianobaraglia)
|
||||
- Enh #1818: Do not display checkbox column if all rows are empty (johonunu)
|
||||
|
||||
@@ -62,6 +62,7 @@ foreach ($generator->templates as $name => $path) {
|
||||
]);
|
||||
} elseif (isset($files)) {
|
||||
echo $this->render('view/files', [
|
||||
'id' => $id,
|
||||
'generator' => $generator,
|
||||
'files' => $files,
|
||||
'answers' => $answers,
|
||||
|
||||
@@ -46,7 +46,7 @@ use yii\gii\CodeFile;
|
||||
?>
|
||||
<tr class="<?= "$file->operation $trClass" ?>">
|
||||
<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): ?>
|
||||
<?= Html::a('diff', ['diff', 'file' => $file->id], ['class' => 'diff-code label label-warning', 'data-title' => $file->getRelativePath()]) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user