Skip to content

Commit

Permalink
Latte panel: prints the parameters as a table
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Aug 6, 2024
1 parent 5f5d723 commit 57055dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Bridges/Tracy/templates/LattePanel.panel.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ $colors = [
<h2>Parameters</h2>

<div class="tracy-inner">
<?= Dumper::toHtml(reset($list)->template->getParameters(), [Dumper::LIVE => true]); ?>
<table class="tracy-sortable tracy-dump-seamless">
<?php foreach (reset($list)->template->getParameters() as $k => $v): ?>
<tr><th><?= Helpers::escapeHtml($k) ?></th><td><?= Dumper::toHtml($v, [Dumper::LIVE => true]) ?></td></tr>
<?php endforeach ?>
</div>
<?php endif ?>
</div>

0 comments on commit 57055dc

Please sign in to comment.