Skip to content

Commit

Permalink
ContainerPanel: class name moved to the top and removed from the header
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Mar 13, 2023
1 parent 8bef81e commit e22a353
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions src/Bridges/DITracy/templates/ContainerPanel.panel.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ use Tracy\Helpers;
}
</style>

<h1><?= get_class($container) ?></h1>
<h1>Nette DI Container</h1>

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

<table class="tracy-sortable">
<thead>
Expand Down Expand Up @@ -75,9 +75,7 @@ use Tracy\Helpers;
<h2>Parameters</h2>

<div class="nette-ContainerPanel-parameters">
<?= Dumper::toHtml($container->parameters); ?>
<?= $container->parameters ? Dumper::toHtml($container->parameters) : "<i>disabled via 'di › export › parameters'</i>" ?>
</div>

<p>Source: <?= Helpers::editorLink($file) ?></p>
</div>
</div>
2 changes: 1 addition & 1 deletion src/Bridges/DITracy/templates/ContainerPanel.tab.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Nette\Bridges\DITracy;


?>
<span title="Dependency Injection Container">
<span title="Nette DI Container">
<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"/>
</svg><span class="tracy-label"><?= $elapsedTime ? sprintf('%0.1f ms', $elapsedTime * 1000) : '' ?></span>
</span>

0 comments on commit e22a353

Please sign in to comment.