Skip to content

Commit 35b7ba1

Browse files
committed
Merge pull request #34 from php-http/old_icon
Add gray icon under 2.8
2 parents 9e5883c + b500446 commit 35b7ba1

File tree

2 files changed

+199
-2
lines changed

2 files changed

+199
-2
lines changed
Lines changed: 187 additions & 0 deletions
Loading

Resources/views/webprofiler.html.twig

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
{% block toolbar %}
66
{% if collector.totalRequests > 0 %}
77
{% set icon %}
8-
{{ include('@Httplug/Icon/httplug.svg') }}
8+
{% if constant('Symfony\\Component\\HttpKernel\\Kernel::VERSION_ID') >= 20800 %}
9+
{{ include('@Httplug/Icon/httplug.svg') }}
10+
{% else %}
11+
{{ include('@Httplug/Icon/httplug_old.svg') }}
12+
{% endif %}
913
<span class="sf-toolbar-value">{{ collector.totalRequests }}</span>
1014
<span class="sf-toolbar-label">req.</span>
1115
{% endset %}
@@ -33,7 +37,13 @@
3337
{% block menu %}
3438
{# This left-hand menu appears when using the full-screen profiler. #}
3539
<span class="label {{ collector.totalRequests == 0 ? 'disabled' }}">
36-
<span class="icon">{{ include('@Httplug/Icon/httplug.svg') }}</span>
40+
<span class="icon">
41+
{% if constant('Symfony\\Component\\HttpKernel\\Kernel::VERSION_ID') >= 20800 %}
42+
{{ include('@Httplug/Icon/httplug.svg') }}
43+
{% else %}
44+
{{ include('@Httplug/Icon/httplug_old.svg') }}
45+
{% endif %}
46+
</span>
3747
<strong>Httplug</strong>
3848
</span>
3949
{% endblock %}

0 commit comments

Comments
 (0)