Carsten Brandt 11 years ago
parent
commit
2f8f64ccc8
  1. 42
      extensions/yii/debug/assets/main.css
  2. 6
      extensions/yii/debug/views/default/panels/db/detail.php
  3. 6
      extensions/yii/debug/views/default/panels/log/detail.php
  4. 6
      extensions/yii/debug/views/default/panels/profile/detail.php

42
extensions/yii/debug/assets/main.css

@ -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";
}

6
extensions/yii/debug/views/default/panels/db/detail.php

@ -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',

6
extensions/yii/debug/views/default/panels/log/detail.php

@ -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',

6
extensions/yii/debug/views/default/panels/profile/detail.php

@ -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',
[

Loading…
Cancel
Save