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'; ...@@ -16,6 +16,11 @@ $this->title = 'Yii Debugger';
<div class="default-index"> <div class="default-index">
<div id="yii-debug-toolbar" class="yii-debug-toolbar-top"> <div id="yii-debug-toolbar" class="yii-debug-toolbar-top">
<div class="yii-debug-toolbar-block title"> <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 Yii Debugger
</div> </div>
</div> </div>
......
...@@ -7,6 +7,9 @@ use yii\helpers\Html; ...@@ -7,6 +7,9 @@ use yii\helpers\Html;
$extensions = $panel->getExtensions(); $extensions = $panel->getExtensions();
?> ?>
<h1>Configuration</h1> <h1>Configuration</h1>
<div><?= Html::a('Show phpinfo() »', ['phpinfo'], ['class' => 'btn btn-info', 'target' => 'phpinfo']) ?></div>
<?php <?php
echo $this->render('panels/config/table', [ echo $this->render('panels/config/table', [
'caption' => 'Application Configuration', 'caption' => 'Application Configuration',
...@@ -34,5 +37,4 @@ echo $this->render('panels/config/table', [ ...@@ -34,5 +37,4 @@ echo $this->render('panels/config/table', [
'Memcache' => $panel->data['php']['memcache'] ? 'Enabled' : 'Disabled', '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; ...@@ -13,5 +13,5 @@ use yii\helpers\Html;
</a> </a>
</div> </div>
<div class="yii-debug-toolbar-block"> <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> </div>
...@@ -21,7 +21,5 @@ $statusText = Html::encode(isset(Response::$httpStatuses[$statusCode]) ? Respons ...@@ -21,7 +21,5 @@ $statusText = Html::encode(isset(Response::$httpStatuses[$statusCode]) ? Respons
?> ?>
<div class="yii-debug-toolbar-block"> <div class="yii-debug-toolbar-block">
<a href="<?= $panel->getUrl() ?>" title="Status code: <?= $statusCode ?> <?= $statusText ?>">Status <span class="label <?= $class ?>"><?= $statusCode ?></span></a> <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> <a href="<?= $panel->getUrl() ?>">Action <span class="label"><?= $panel->data['action'] ?></span></a>
</div> </div>
...@@ -26,6 +26,11 @@ EOD; ...@@ -26,6 +26,11 @@ EOD;
$url = $panels['request']->getUrl(); $url = $panels['request']->getUrl();
?> ?>
<div id="yii-debug-toolbar" class="yii-debug-toolbar-<?= $position ?>"> <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): ?> <?php foreach ($panels as $panel): ?>
<?= $panel->getSummary() ?> <?= $panel->getSummary() ?>
<?php endforeach; ?> <?php endforeach; ?>
......
...@@ -17,6 +17,11 @@ $this->title = 'Yii Debugger'; ...@@ -17,6 +17,11 @@ $this->title = 'Yii Debugger';
?> ?>
<div class="default-view"> <div class="default-view">
<div id="yii-debug-toolbar" class="yii-debug-toolbar-top"> <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"> <div class="yii-debug-toolbar-block title">
<?= Html::a('Yii Debugger', ['index'], ['title' => 'Back to main debug page']) ?> <?= Html::a('Yii Debugger', ['index'], ['title' => 'Back to main debug page']) ?>
</div> </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