toolbar.php
1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/* @var $this \yii\web\View */
/* @var $panels \yii\debug\Panel[] */
/* @var $tag string */
/* @var $position string */
use yii\helpers\Url;
$firstPanel = reset($panels);
$url = $firstPanel->getUrl();
?>
<div id="yii-debug-toolbar" class="yii-debug-toolbar yii-debug-toolbar_position_<?= $position ?>">
<div class="yii-debug-toolbar__bar">
<div class="yii-debug-toolbar__block yii-debug-toolbar__title">
<a href="<?= Url::to(['index']) ?>">
<img width="30" height="30" alt="" src="<?= \yii\debug\Module::getYiiLogo() ?>">
</a>
</div>
<div class="yii-debug-toolbar__block yii-debug-toolbar__ajax" style="display: none">
AJAX <span class="yii-debug-toolbar__label yii-debug-toolbar__ajax_counter">0</span>
<div class="yii-debug-toolbar__ajax_info">
<table>
<thead>
<tr>
<th>Method</th>
<th>Status</th>
<th>URL</th>
<th>Time</th>
<th>Profile</th>
</tr>
</thead>
<tbody class="yii-debug-toolbar__ajax_requests"></tbody>
</table>
</div>
</div>
<?php foreach ($panels as $panel): ?>
<?= $panel->getSummary() ?>
<?php endforeach; ?>
<div class="yii-debug-toolbar__block_last">
</div>
<a class="yii-debug-toolbar__external" href="#" target="_blank">
<span class="yii-debug-toolbar__external-icon"></span>
</a>
<span class="yii-debug-toolbar__toggle">
<span class="yii-debug-toolbar__toggle-icon"></span>
</span>
</div>
<div class="yii-debug-toolbar__view">
<iframe src="about:blank" frameborder="0"></iframe>
</div>
</div>