Commit b3e6aedc by Tobias Munk

toolbar UI updates

added home icon removed separators with summary sections to make browsing with the panel more intuitive updated version number display, now also shown as label
parent 646e371b
......@@ -15,6 +15,9 @@ $this->title = 'Yii Debugger';
?>
<div class="default-index">
<div id="yii-debug-toolbar" class="yii-debug-toolbar-top">
<a href="<?= Yii::$app->homeUrl ?>">
<span class="glyphicon glyphicon-home"></span>
</a>
<div class="yii-debug-toolbar-block title">
Yii Debugger
</div>
......
......@@ -9,9 +9,6 @@ use yii\helpers\Html;
<div class="yii-debug-toolbar-block">
<a href="<?= $panel->getUrl() ?>">
<img width="29" height="30" alt="" src="<?= $panel->getYiiLogo() ?>">
<span><?= $panel->data['application']['yii'] ?></span>
<span><span class="label"><?= $panel->data['application']['yii'] ?></span> PHP <span class="label"><?= $panel->data['php']['version'] ?></span></span>
</a>
</div>
<div class="yii-debug-toolbar-block">
<?= Html::a('PHP ' . $panel->data['php']['version'], ['phpinfo'], ['title' => 'Show phpinfo()']) ?>
</div>
</div>
\ No newline at end of file
......@@ -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