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
2f8f64cc
Commit
2f8f64cc
authored
Jan 04, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added sorting links to debug toolbar
as requested in
https://github.com/yiisoft/yii2/pull/1781#issuecomment-31587963
https://github.com/yiisoft/yii2/issues/1478#issuecomment-31576474
fixes #1478
parent
9411429d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
59 additions
and
2 deletions
+59
-2
main.css
extensions/yii/debug/assets/main.css
+42
-1
detail.php
extensions/yii/debug/views/default/panels/db/detail.php
+6
-0
detail.php
extensions/yii/debug/views/default/panels/log/detail.php
+5
-1
detail.php
extensions/yii/debug/views/default/panels/profile/detail.php
+6
-0
No files found.
extensions/yii/debug/assets/main.css
View file @
2f8f64cc
...
...
@@ -28,7 +28,47 @@ ul.trace {
float
:
right
;
}
td
,
th
{
td
{
white-space
:
pre-line
;
word-wrap
:
break-word
;
}
th
{
white-space
:
nowrap
;
}
/* add sorting icons to gridview sort links */
a
.asc
:after
,
a
.desc
:after
{
position
:
relative
;
top
:
1px
;
display
:
inline-block
;
font-family
:
'Glyphicons Halflings'
;
font-style
:
normal
;
font-weight
:
normal
;
line-height
:
1
;
padding-left
:
5px
;
}
a
.asc
:after
{
content
:
/*"\e113"*/
"\e151"
;
}
a
.desc
:after
{
content
:
/*"\e114"*/
"\e152"
;
}
.sort-numerical
a
.asc
:after
{
content
:
"\e153"
;
}
.sort-numerical
a
.desc
:after
{
content
:
"\e154"
;
}
.sort-ordinal
a
.asc
:after
{
content
:
"\e155"
;
}
.sort-ordinal
a
.desc
:after
{
content
:
"\e156"
;
}
\ No newline at end of file
extensions/yii/debug/views/default/panels/db/detail.php
View file @
2f8f64cc
...
...
@@ -21,6 +21,9 @@ echo GridView::widget([
$millisecondsDiff
=
(
int
)((
$timeInSeconds
-
(
int
)
$timeInSeconds
)
*
1000
);
return
date
(
'H:i:s.'
,
$timeInSeconds
)
.
sprintf
(
'%03d'
,
$millisecondsDiff
);
},
'headerOptions'
=>
[
'class'
=>
'sort-numerical'
]
],
[
'attribute'
=>
'duration'
,
...
...
@@ -30,6 +33,9 @@ echo GridView::widget([
'options'
=>
[
'width'
=>
'10%'
,
],
'headerOptions'
=>
[
'class'
=>
'sort-numerical'
]
],
[
'attribute'
=>
'type'
,
...
...
extensions/yii/debug/views/default/panels/log/detail.php
View file @
2f8f64cc
...
...
@@ -29,6 +29,9 @@ echo GridView::widget([
$millisecondsDiff
=
(
int
)((
$timeInSeconds
-
(
int
)
$timeInSeconds
)
*
1000
);
return
date
(
'H:i:s.'
,
$timeInSeconds
)
.
sprintf
(
'%03d'
,
$millisecondsDiff
);
},
'headerOptions'
=>
[
'class'
=>
'sort-numerical'
]
],
[
'attribute'
=>
'level'
,
...
...
@@ -37,9 +40,10 @@ echo GridView::widget([
},
'filter'
=>
[
Logger
::
LEVEL_TRACE
=>
' Trace '
,
Logger
::
LEVEL_PROFILE
=>
' Profile '
,
Logger
::
LEVEL_INFO
=>
' Info '
,
Logger
::
LEVEL_WARNING
=>
' Warning '
,
Logger
::
LEVEL_ERROR
=>
' Error '
,
Logger
::
LEVEL_PROFILE
=>
' Profile '
,
],
],
'category'
,
...
...
extensions/yii/debug/views/default/panels/profile/detail.php
View file @
2f8f64cc
...
...
@@ -20,6 +20,9 @@ echo GridView::widget([
$millisecondsDiff
=
(
int
)((
$timeInSeconds
-
(
int
)
$timeInSeconds
)
*
1000
);
return
date
(
'H:i:s.'
,
$timeInSeconds
)
.
sprintf
(
'%03d'
,
$millisecondsDiff
);
},
'headerOptions'
=>
[
'class'
=>
'sort-numerical'
]
],
[
'attribute'
=>
'duration'
,
...
...
@@ -29,6 +32,9 @@ echo GridView::widget([
'options'
=>
[
'width'
=>
'10%'
,
],
'headerOptions'
=>
[
'class'
=>
'sort-numerical'
]
],
'category'
,
[
...
...
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