Skip to content

Commit

Permalink
Fix icon display in WDT when profiler_markup_version >= 3
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsche authored and ostrolucky committed Mar 27, 2023
1 parent 8caa8ef commit efe215c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Resources/views/Collector/db.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
{% set icon %}
{% set status = collector.invalidEntityCount > 0 ? 'red' : collector.querycount > 50 ? 'yellow' %}

<span class="icon">{{ include('@Doctrine/Collector/' ~ (profiler_markup_version < 3 ? 'icon' : 'database') ~ '.svg') }}</span>
{% if profiler_markup_version >= 3 %}
{{ include('@Doctrine/Collector/database.svg') }}
{% else %}
<span class="icon">{{ include('@Doctrine/Collector/icon.svg') }}</span>
{% endif %}

{% if collector.querycount == 0 and collector.invalidEntityCount > 0 %}
<span class="sf-toolbar-value">{{ collector.invalidEntityCount }}</span>
Expand Down

0 comments on commit efe215c

Please sign in to comment.