mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-19 01:34:44 +08:00
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
This commit is contained in:
@ -15,6 +15,9 @@ $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">
|
||||||
|
<a href="<?= Yii::$app->homeUrl ?>">
|
||||||
|
<span class="glyphicon glyphicon-home"></span>
|
||||||
|
</a>
|
||||||
<div class="yii-debug-toolbar-block title">
|
<div class="yii-debug-toolbar-block title">
|
||||||
Yii Debugger
|
Yii Debugger
|
||||||
</div>
|
</div>
|
||||||
|
@ -9,9 +9,6 @@ use yii\helpers\Html;
|
|||||||
<div class="yii-debug-toolbar-block">
|
<div class="yii-debug-toolbar-block">
|
||||||
<a href="<?= $panel->getUrl() ?>">
|
<a href="<?= $panel->getUrl() ?>">
|
||||||
<img width="29" height="30" alt="" src="<?= $panel->getYiiLogo() ?>">
|
<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>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="yii-debug-toolbar-block">
|
|
||||||
<?= Html::a('PHP ' . $panel->data['php']['version'], ['phpinfo'], ['title' => 'Show phpinfo()']) ?>
|
|
||||||
</div>
|
|
||||||
|
@ -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;
|
|||||||
$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';
|
|||||||
?>
|
?>
|
||||||
<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>
|
||||||
|
Reference in New Issue
Block a user