Browse Source

debug toolbar wip

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
b6ffa7c93e
  1. 41
      framework/yii/debug/views/default/index.php
  2. 6
      framework/yii/debug/views/layouts/main.php

41
framework/yii/debug/views/default/index.php

@ -10,20 +10,31 @@ use yii\helpers\Html;
*/
?>
<div class="default-index">
<div class="span3">
<div class="well sidebar-nav">
<ul class="nav nav-list">
<?php
foreach ($panels as $panel) {
$link = Html::a(Html::encode($panel->getName()), array('debug/default/index', 'tag' => $tag, 'panel' => $panel->id));
echo Html::tag('li', $link, array('class' => $panel === $activePanel ? 'active' : null));
}
?>
</ul>
</div><!--/.well -->
</div><!--/span-->
<div class="span9">
<?php echo $activePanel->getDetail(); ?>
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<span class="brand">Yii Debugger</span>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span2">
<div class="well sidebar-nav">
<ul class="nav nav-list">
<?php
foreach ($panels as $panel) {
$link = Html::a(Html::encode($panel->getName()), array('debug/default/index', 'tag' => $tag, 'panel' => $panel->id));
echo Html::tag('li', $link, array('class' => $panel === $activePanel ? 'active' : null));
}
?>
</ul>
</div><!--/.well -->
</div><!--/span-->
<div class="span10">
<?php echo $activePanel->getDetail(); ?>
</div>
</div>
</div>
</div>

6
framework/yii/debug/views/layouts/main.php

@ -16,11 +16,7 @@ Yii::$app->getView()->registerAssetBundle('yii/bootstrap/responsive');
</head>
<body>
<?php $this->beginBody(); ?>
<div class="container-fluid">
<div class="row-fluid">
<?php echo $content; ?>
</div>
</div>
<?php echo $content; ?>
<?php $this->endBody(); ?>
</body>
<?php $this->endPage(); ?>

Loading…
Cancel
Save