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
2c9a8b91
Commit
2c9a8b91
authored
Dec 10, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make null format look nice by default
parent
fec58f4e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
2 deletions
+17
-2
site.css
apps/advanced/backend/web/css/site.css
+5
-0
site.css
apps/advanced/frontend/web/css/site.css
+5
-0
site.css
apps/basic/web/css/site.css
+5
-0
Formatter.php
framework/yii/base/Formatter.php
+2
-2
No files found.
apps/advanced/backend/web/css/site.css
View file @
2c9a8b91
...
...
@@ -18,6 +18,11 @@ body {
padding
:
14px
24px
;
}
.not-set
{
color
:
#c55
;
font-style
:
italic
;
}
/* add sorting icons to gridview sort links */
a
.asc
:after
,
a
.desc
:after
{
position
:
relative
;
...
...
apps/advanced/frontend/web/css/site.css
View file @
2c9a8b91
...
...
@@ -18,6 +18,11 @@ body {
padding
:
14px
24px
;
}
.not-set
{
color
:
#c55
;
font-style
:
italic
;
}
/* add sorting icons to gridview sort links */
a
.asc
:after
,
a
.desc
:after
{
position
:
relative
;
...
...
apps/basic/web/css/site.css
View file @
2c9a8b91
...
...
@@ -19,6 +19,11 @@ body {
padding
:
14px
24px
;
}
.not-set
{
color
:
#c55
;
font-style
:
italic
;
}
/* add sorting icons to gridview sort links */
a
.asc
:after
,
a
.desc
:after
{
position
:
relative
;
...
...
framework/yii/base/Formatter.php
View file @
2c9a8b91
...
...
@@ -40,7 +40,7 @@ class Formatter extends Component
*/
public
$datetimeFormat
=
'Y/m/d h:i:s A'
;
/**
* @var string the text to be displayed when formatting a null. Defaults to '
(not set)
'.
* @var string the text to be displayed when formatting a null. Defaults to '
<span class="not-set">(not set)</span>
'.
*/
public
$nullDisplay
;
/**
...
...
@@ -69,7 +69,7 @@ class Formatter extends Component
$this
->
booleanFormat
=
[
Yii
::
t
(
'yii'
,
'No'
),
Yii
::
t
(
'yii'
,
'Yes'
)];
}
if
(
$this
->
nullDisplay
===
null
)
{
$this
->
nullDisplay
=
Yii
::
t
(
'yii'
,
'(not set)'
)
;
$this
->
nullDisplay
=
'<span class="not-set">'
.
Yii
::
t
(
'yii'
,
'(not set)'
)
.
'</span>'
;
}
}
...
...
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