diff --git a/src/Resources/views/Collector/cache.html.twig b/src/Resources/views/Collector/cache.html.twig index a7ce24c..6f46646 100644 --- a/src/Resources/views/Collector/cache.html.twig +++ b/src/Resources/views/Collector/cache.html.twig @@ -19,41 +19,42 @@ {% endblock head %} {% block toolbar %} - {% set icon %} - Cache - {{ collector.totals.calls }} {% if collector.totals.calls > 0 %} - in {{ '%0.2f'|format(collector.totals.time * 1000) }} - ms + {% set icon %} + {{ include('@Cache/Icon/logo.svg') }} + {{ collector.totals.calls }} + + in + {{ '%0.2f'|format(collector.totals.time * 1000) }} + ms + + {% endset %} + {% set text %} +
+ Cache Calls + {{ collector.totals.calls }} +
+
+ Total time + {{ '%0.2f'|format(collector.totals.time * 1000) }} ms +
+
+ Cache hits + {{ collector.totals.hits }}/{{ collector.totals.reads }} ({{ collector.totals.ratio }}) +
+
+ Cache writes + {{ collector.totals.writes }} +
+ {% endset %} + {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': profiler_url } %} {% endif %} - {% endset %} - {% set text %} -
- Cache Calls - {{ collector.totals.calls }} -
-
- Total time - {{ '%0.2f'|format(collector.totals.time * 1000) }} ms -
-
- Cache hits - {{ collector.totals.hits }}/{{ collector.totals.reads }} ({{ collector.totals.ratio }}) -
-
- Cache writes - {{ collector.totals.writes }} -
- {% endset %} - {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': profiler_url } %} {% endblock %} {% block menu %} - + - Cache + {{ include('@Cache/Icon/logo.svg') }} Cache diff --git a/src/Resources/views/Icon/logo.svg b/src/Resources/views/Icon/logo.svg new file mode 100644 index 0000000..d85f14f --- /dev/null +++ b/src/Resources/views/Icon/logo.svg @@ -0,0 +1,8 @@ + + + +