Commit 2698717b by Qiang Xue

Merge pull request #2320 from schmunk42/feature/toolbar-ui

toolbar UI updates
parents 0e806330 bbb0a222
......@@ -16,6 +16,11 @@ $this->title = 'Yii Debugger';
<div class="default-index">
<div id="yii-debug-toolbar" class="yii-debug-toolbar-top">
<div class="yii-debug-toolbar-block title">
<a href="<?= Yii::$app->homeUrl ?>">
<span class="glyphicon glyphicon-home"></span>
</a>
</div>
<div class="yii-debug-toolbar-block title">
Yii Debugger
</div>
</div>
......
......@@ -7,6 +7,9 @@ use yii\helpers\Html;
$extensions = $panel->getExtensions();
?>
<h1>Configuration</h1>
<div><?= Html::a('Show phpinfo() »', ['phpinfo'], ['class' => 'btn btn-info', 'target' => 'phpinfo']) ?></div>
<?php
echo $this->render('panels/config/table', [
'caption' => 'Application Configuration',
......@@ -34,5 +37,4 @@ echo $this->render('panels/config/table', [
'Memcache' => $panel->data['php']['memcache'] ? 'Enabled' : 'Disabled',
],
]);
?>
<div><?= Html::a('Show phpinfo() »', ['phpinfo'], ['class' => 'btn btn-primary']) ?></div>
?>
\ No newline at end of file
......@@ -13,5 +13,5 @@ use yii\helpers\Html;
</a>
</div>
<div class="yii-debug-toolbar-block">
<?= Html::a('PHP ' . $panel->data['php']['version'], ['phpinfo'], ['title' => 'Show phpinfo()']) ?>
<?= Html::a('PHP ' . $panel->data['php']['version'], ['phpinfo'], ['title' => 'Show phpinfo()', 'target' => 'phpinfo']) ?>
</div>
......@@ -21,7 +21,5 @@ $statusText = Html::encode(isset(Response::$httpStatuses[$statusCode]) ? Respons
?>
<div class="yii-debug-toolbar-block">
<a href="<?= $panel->getUrl() ?>" title="Status code: <?= $statusCode ?> <?= $statusText ?>">Status <span class="label <?= $class ?>"><?= $statusCode ?></span></a>
</div>
<div class="yii-debug-toolbar-block">
<a href="<?= $panel->getUrl() ?>">Action <span class="label"><?= $panel->data['action'] ?></span></a>
</div>
......@@ -26,6 +26,11 @@ EOD;
$url = $panels['request']->getUrl();
?>
<div id="yii-debug-toolbar" class="yii-debug-toolbar-<?= $position ?>">
<div class="yii-debug-toolbar-block">
<a href="<?= Yii::$app->homeUrl ?>">
<span class="glyphicon glyphicon-home"></span>
</a>
</div>
<?php foreach ($panels as $panel): ?>
<?= $panel->getSummary() ?>
<?php endforeach; ?>
......
......@@ -17,6 +17,11 @@ $this->title = 'Yii Debugger';
?>
<div class="default-view">
<div id="yii-debug-toolbar" class="yii-debug-toolbar-top">
<div class="yii-debug-toolbar-block">
<a href="<?= Yii::$app->homeUrl ?>">
<span class="glyphicon glyphicon-home"></span>
</a>
</div>
<div class="yii-debug-toolbar-block title">
<?= Html::a('Yii Debugger', ['index'], ['title' => 'Back to main debug page']) ?>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment