Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
f7a859f5
Commit
f7a859f5
authored
Mar 12, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2719 from klevron/2712
Fix #2712
parents
466e2600
0b92f270
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
CHANGELOG.md
extensions/gii/CHANGELOG.md
+1
-0
view.php
extensions/gii/views/default/view.php
+1
-0
files.php
extensions/gii/views/default/view/files.php
+1
-1
No files found.
extensions/gii/CHANGELOG.md
View file @
f7a859f5
...
...
@@ -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)
...
...
extensions/gii/views/default/view.php
View file @
f7a859f5
...
...
@@ -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
,
...
...
extensions/gii/views/default/view/files.php
View file @
f7a859f5
...
...
@@ -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
;
?>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment