You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.1 KiB
79 lines
2.1 KiB
12 years ago
|
<?php
|
||
|
|
||
12 years ago
|
use yii\bootstrap\ButtonDropdown;
|
||
|
use yii\bootstrap\ButtonGroup;
|
||
12 years ago
|
use yii\helpers\Html;
|
||
|
|
||
|
/**
|
||
|
* @var \yii\base\View $this
|
||
12 years ago
|
* @var array $summary
|
||
12 years ago
|
* @var string $tag
|
||
|
* @var array $manifest
|
||
|
* @var \yii\debug\Panel[] $panels
|
||
|
* @var \yii\debug\Panel $activePanel
|
||
|
*/
|
||
|
|
||
|
$this->title = 'Yii Debugger';
|
||
|
?>
|
||
|
<div class="default-view">
|
||
12 years ago
|
<div id="yii-debug-toolbar">
|
||
|
<div class="yii-debug-toolbar-block title">
|
||
|
Yii Debugger
|
||
12 years ago
|
</div>
|
||
12 years ago
|
<?php foreach ($panels as $panel): ?>
|
||
11 years ago
|
<?= $panel->getSummary() ?>
|
||
12 years ago
|
<?php endforeach; ?>
|
||
12 years ago
|
</div>
|
||
|
|
||
12 years ago
|
<div class="container">
|
||
|
<div class="row">
|
||
|
<div class="col-lg-2">
|
||
12 years ago
|
<div class="list-group">
|
||
12 years ago
|
<?php
|
||
|
foreach ($panels as $id => $panel) {
|
||
12 years ago
|
$label = '<i class="glyphicon glyphicon-chevron-right"></i>' . Html::encode($panel->getName());
|
||
11 years ago
|
echo Html::a($label, ['view', 'tag' => $tag, 'panel' => $id], [
|
||
12 years ago
|
'class' => $panel === $activePanel ? 'list-group-item active' : 'list-group-item',
|
||
11 years ago
|
]);
|
||
12 years ago
|
}
|
||
|
?>
|
||
12 years ago
|
</div>
|
||
|
</div>
|
||
12 years ago
|
<div class="col-lg-10">
|
||
12 years ago
|
<div class="callout callout-danger">
|
||
|
<?php
|
||
|
$count = 0;
|
||
11 years ago
|
$items = [];
|
||
12 years ago
|
foreach ($manifest as $meta) {
|
||
|
$label = $meta['tag'] . ': ' . $meta['method'] . ' ' . $meta['url'] . ($meta['ajax'] ? ' (AJAX)' : '')
|
||
|
. ', ' . date('Y-m-d h:i:s a', $meta['time'])
|
||
|
. ', ' . $meta['ip'];
|
||
11 years ago
|
$url = ['view', 'tag' => $meta['tag'], 'panel' => $activePanel->id];
|
||
|
$items[] = [
|
||
12 years ago
|
'label' => $label,
|
||
|
'url' => $url,
|
||
11 years ago
|
];
|
||
12 years ago
|
if (++$count >= 10) {
|
||
|
break;
|
||
12 years ago
|
}
|
||
12 years ago
|
}
|
||
11 years ago
|
echo ButtonGroup::widget([
|
||
|
'buttons' => [
|
||
|
Html::a('All', ['index'], ['class' => 'btn btn-default']),
|
||
|
ButtonDropdown::widget([
|
||
12 years ago
|
'label' => 'Last 10',
|
||
11 years ago
|
'options' => ['class' => 'btn-default'],
|
||
|
'dropdown' => ['items' => $items],
|
||
|
]),
|
||
|
],
|
||
|
]);
|
||
12 years ago
|
echo "\n" . $summary['tag'] . ': ' . $summary['method'] . ' ' . Html::a(Html::encode($summary['url']), $summary['url']);
|
||
|
echo ' at ' . date('Y-m-d h:i:s a', $summary['time']) . ' by ' . $summary['ip'];
|
||
|
?>
|
||
12 years ago
|
</div>
|
||
11 years ago
|
<?= $activePanel->getDetail() ?>
|
||
12 years ago
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|