From 56c2b1f4e46042c7b362fc366118f19ed45326e0 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Mon, 21 Mar 2016 12:38:42 +0100 Subject: [PATCH] Added logo in toolbar --- src/Resources/views/Collector/cache.html.twig | 59 ++++++++++--------- src/Resources/views/Icon/logo.svg | 8 +++ 2 files changed, 38 insertions(+), 29 deletions(-) create mode 100644 src/Resources/views/Icon/logo.svg 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 @@ + + + +