Skip to content

Commit

Permalink
Merge pull request #246 from gregurco/disable_profiler_tab
Browse files Browse the repository at this point in the history
[Profiler] Disable Guzzle element in menu when no info
  • Loading branch information
gregurco committed Dec 17, 2018
2 parents 527c3e2 + 02bf504 commit 2b23030
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ php:
- 7.0
- 7.1
- 7.2
- 7.3
- nightly

env:
Expand Down
14 changes: 8 additions & 6 deletions src/Resources/views/debug.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,22 @@
{% endif %}
{% endblock %}


{% block menu %}
<span class="label">
<span class="label {{ collector.callCount ? '' : 'disabled' }}">
<span class="icon">
{{ include("@EightPointsGuzzle/Icons/logo.svg.twig") }}
</span>

<strong>Guzzle</strong>
<span class="count">
<span>{{ collector.callCount }}</span>
</span>

{% if collector.callCount > 0 %}
<span class="count">
<span>{{ collector.callCount }}</span>
</span>
{% endif %}
</span>
{% endblock %}


{% block head %}
{{ parent() }}

Expand Down

0 comments on commit 2b23030

Please sign in to comment.