10000 [HackDay][WebProfilerBundle]Display the main template on the debug toolbar by vincentmoulene · Pull Request #29534 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[HackDay][WebProfilerBundle]Display the main template on the debug toolbar #29534

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@
<span>{{ collector.route|default('n/a') }}</span>
</div>

{%- set keystemplates = profile.collectors['twig'].getTemplates|keys|default(false) -%}
Copy link
Contributor
@ro0NL ro0NL Dec 8, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this creates a dependency with the twig collector which can break, to me that implies it belongs in the twig toolbar block at least (or should be checked for; i can see you want to have it here actually).

<div class="sf-toolbar-info-piece">
<b>Main template</b>
<span>{{ keystemplates|first }}</span>
</div>

<div class="sf-toolbar-info-piece">
<b>Has session</b>
<span>{% if collector.sessionmetadata|length %}yes{% else %}no{% endif %}</span>
Expand Down
0