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.

66 lines
1.9 KiB

12 years ago
<?php
use yii\helpers\Html;
/**
* @var \yii\base\View $this
12 years ago
* @var array $meta
12 years ago
* @var string $tag
12 years ago
* @var array $manifest
12 years ago
* @var \yii\debug\Panel[] $panels
* @var \yii\debug\Panel $activePanel
*/
12 years ago
$this->registerAssetBundle('yii/bootstrap/dropdown');
12 years ago
?>
12 years ago
<div class="default-index">
12 years ago
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<span class="brand">Yii Debugger</span>
</div>
</div>
12 years ago
</div>
12 years ago
12 years ago
<div class="container-fluid">
<div class="row-fluid">
<div class="span2">
12 years ago
<ul class="nav nav-tabs nav-list nav-stacked">
12 years ago
<?php
12 years ago
foreach ($panels as $id => $panel) {
$link = Html::a(Html::encode($panel->getName()), array('debug/default/index', 'tag' => $tag, 'panel' => $id));
12 years ago
echo Html::tag('li', $link, array('class' => $panel === $activePanel ? 'active' : null));
}
?>
</ul>
</div><!--/span-->
<div class="span10">
12 years ago
<div class="meta alert alert-info">
<div class="btn-group">
<button class="btn dropdown-toggle" data-toggle="dropdown">
View others
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<?php foreach ($manifest as $tag2 => $meta2) {
$label = $meta2['method'] . ' ' . $meta2['url'] . ($meta2['ajax'] ? ' (AJAX)' : '')
. ', ' . date('Y/m/d h:i:sa', $meta2['time'])
. ', ' . $meta2['ip'] . ', ' . $tag2;
$url = array('debug/default/index', 'tag' => $tag2);
echo '<li>' . Html::a(Html::encode($label), $url) . '</li>';
} ?>
</ul>
</div>
Debugging:
<?php echo $meta['method']; ?>
<?php echo Html::a(Html::encode($meta['url']), $meta['url']); ?>
<?php echo $meta['ajax'] ? ' (AJAX)' : ''; ?>
at <?php echo date('Y/m/d h:i:sa', $meta['time']); ?>
by <?php echo $meta['ip']; ?>
</div>
12 years ago
<?php echo $activePanel->getDetail(); ?>
</div>
</div>
</div>
</div>