Skip to content

Commit e22a353

Browse files
committed
ContainerPanel: class name moved to the top and removed from the header
1 parent 8bef81e commit e22a353

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/Bridges/DITracy/templates/ContainerPanel.panel.phtml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ use Tracy\Helpers;
3131
}
3232
</style>
3333

34-
<h1><?= get_class($container) ?></h1>
34+
<h1>Nette DI Container</h1>
3535

3636
<div class="tracy-inner nette-ContainerPanel">
3737
<div class="tracy-inner-container">
38-
<h2>Services</h2>
38+
<p>Source: <?= Helpers::editorLink($file) ?></p>
3939

4040
<table class="tracy-sortable">
4141
<thead>
@@ -75,9 +75,7 @@ use Tracy\Helpers;
7575
<h2>Parameters</h2>
7676

7777
<div class="nette-ContainerPanel-parameters">
78-
<?= Dumper::toHtml($container->parameters); ?>
78+
<?= $container->parameters ? Dumper::toHtml($container->parameters) : "<i>disabled via 'di › export › parameters'</i>" ?>
7979
</div>
80-
81-
<p>Source: <?= Helpers::editorLink($file) ?></p>
8280
</div>
8381
</div>

src/Bridges/DITracy/templates/ContainerPanel.tab.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Nette\Bridges\DITracy;
55

66

77
?>
8-
<span title="Dependency Injection Container">
8+
<span title="Nette DI Container">
99
<svg viewBox="0 0 2048 2048"><path fill="#ae7c21" d="m1675 690.55v-125c0-36-4-60-13-71-9-12-26-18-52-18s-43 6-52 17c-8 11-12 36-12 72v910.62c0 37 4 61 12 72 9 11 26 17 52 17s44-6 52-17c9-12 13-36 13-72v-207h243v165c0 86-4 148-12 187-8 38-21 70-39 96-20 28-45 48-77 59-31 11-87 16-170 16-96 0-161-5-196-16-34-11-63-31-86-59-21-26-36-59-45-97-9-39-14-101-14-186v-826.62c0-85 4-147 13-185s25-71 46-97c23-29 54-49 92-60s102-17 189-17c75 0 130 6 164 17s61 30 81 59c19 26 33 59 41 99 8 39 12 101 12 185v84zm-524 1086.6h-254v-1514.6h254zm-1025 0v-1514.6h316c127 0 212 27 257 81 44 53 66 159 66 316v721.62c0 157-22 263-66 317-44 53-130 80-257 80zm388-314v-884.62c0-35-4-58-13-70-9-11-26-17-53-17h-66v1058.6h66c26 0 44-6 53-17 9-12 14-35 14-70z"/>
1010
</svg><span class="tracy-label"><?= $elapsedTime ? sprintf('%0.1f ms', $elapsedTime * 1000) : '' ?></span>
1111
</span>

0 commit comments

Comments
 (0)