Skip to content

Commit 2464c4d

Browse files
committed
Improve route path explainer text.
1 parent 70e851f commit 2464c4d

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

templates/element/request_panel.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<code><?php echo h($routePath); ?></code>
5757
</div>
5858
<p>
59-
<i>[Plugin].[Prefix]/[Controller]::[action]</i>
59+
<i class="o-help">Route path grammar: [Plugin].[Prefix]/[Controller]::[action]</i>
6060
</p>
6161

6262
<h4>Attributes</h4>
@@ -93,6 +93,13 @@
9393
<p class="c-flash c-flash--info">No Cookie data.</p>
9494
<?php endif; ?>
9595

96+
<h4>Session</h4>
97+
<?php if (isset($session)) : ?>
98+
<?= $this->Toolbar->dumpNode($session) ?>
99+
<?php else : ?>
100+
<p class="c-flash c-flash--info">No Session data.</p>
101+
<?php endif; ?>
102+
96103
<?php if (!empty($matchedRoute)) : ?>
97104
<h4>Matched Route</h4>
98105
<p><?= $this->Toolbar->dumpNode(Debugger::exportVarAsNodes(['template' => $matchedRoute])) ?></p>

webroot/css/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,10 @@ strong {
238238
-webkit-animation: spin 4s linear infinite;
239239
animation: spin 4s linear infinite;
240240
}
241+
.o-help {
242+
color: var(--checkbox-label);
243+
font-size: 14px;
244+
}
241245

242246
@-webkit-keyframes spin {
243247
100% {

0 commit comments

Comments
 (0)