Skip to content

Commit

Permalink
RoutingPanel: URL & link to presenter moved to the top
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Apr 28, 2023
1 parent 73391b9 commit b03bd49
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/Bridges/ApplicationTracy/templates/RoutingPanel.panel.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ use Tracy\Helpers;
</h1>

<div class="tracy-inner nette-RoutingPanel">
<div class="tracy-inner-container">
<p><code><?= Helpers::escapeHtml($method) ?></code>
<code><?= Helpers::escapeHtml($url->getBaseUrl()) ?><wbr><span class="nette-RoutingPanel-rel"><?= str_replace(['&amp;', '?'], ['<wbr>&amp;', '<wbr>?'], Helpers::escapeHtml($url->getRelativeUrl())) ?></span></code></p>

<?php if ($source): ?>
<p><a href="<?= Helpers::escapeHtml(Tracy\Helpers::editorUri($source->getFileName(), $source->getStartLine())) ?>"><?= $source instanceof \ReflectionClass ? $source->getName() : $source->getDeclaringClass()->getName() . '::' . $source->getName() . '()' ?></a></p>
<?php endif ?>
</div>

<div class="tracy-inner-container">
<?php if (empty($routers)): ?>
<p>No routers defined.</p>
Expand Down Expand Up @@ -113,13 +122,4 @@ use Tracy\Helpers;
</table>
<?php endif ?>
</div>

<div class="tracy-inner-container">
<p><code><?= Helpers::escapeHtml($method) ?></code>
<code><?= Helpers::escapeHtml($url->getBaseUrl()) ?><wbr><span class="nette-RoutingPanel-rel"><?= str_replace(['&amp;', '?'], ['<wbr>&amp;', '<wbr>?'], Helpers::escapeHtml($url->getRelativeUrl())) ?></span></code></p>

<?php if ($source): ?>
<p><a href="<?= Helpers::escapeHtml(Tracy\Helpers::editorUri($source->getFileName(), $source->getStartLine())) ?>"><?= $source instanceof \ReflectionClass ? $source->getName() : $source->getDeclaringClass()->getName() . '::' . $source->getName() . '()' ?></a></p>
<?php endif ?>
</div>
</div>

0 comments on commit b03bd49

Please sign in to comment.