8000 TwigBundle exception/deprecation tweaks by ro0NL · Pull Request #24244 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

TwigBundle exception/deprecation tweaks #24244

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

Merged
merged 4 commits into from
Sep 27, 2017
Merged
Changes from 1 commit
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
Next Next commit
[TwigBundle] Hide logs if unavailable, i.e. webprofiler
  • Loading branch information
ro0NL committed Sep 21, 2017
commit 03cd9e553b26008707b82388f41910c49cbb9f7f
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,15 @@
</div>
</div>

<div class="tab {{ logger is empty ? 'disabled' }}">
{% if logger %}
<div class="tab {{ logger.logs is empty ? 'disabled' }}">
<h3 class="tab-title">
Logs
{% if logger.counterrors ?? false %}<span class="badge status-error">{{ logger.counterrors }}</span>{% endif %}
</h3>

<div class="tab-content">
{% if logger %}
{% if logger.logs %}
{{ include('@Twig/Exception/logs.html.twig', { logs: logger.logs }, with_context = false) }}
{% else %}
<div class="empty">
Expand All @@ -70,6 +71,7 @@
{% endif %}
</div>
</div>
{% endif %}

<div class="tab">
<h3 class="tab-title">
Expand Down
0