diff --git a/src/Symfony/Bundle/DoctrineBundle/Resources/views/Collector/db.html.twig b/src/Symfony/Bundle/DoctrineBundle/Resources/views/Collector/db.html.twig
index 256802dec562..be1ffcd1a51a 100644
--- a/src/Symfony/Bundle/DoctrineBundle/Resources/views/Collector/db.html.twig
+++ b/src/Symfony/Bundle/DoctrineBundle/Resources/views/Collector/db.html.twig
@@ -2,12 +2,12 @@
{% block toolbar %}
{% set icon %}
-
+
{% endset %}
{% set text %}
{{ collector.querycount }}
{% endset %}
- {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with {'icon' : icon, 'text' : text, 'status' : collector.status } only %}
+ {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': profiler_url, 'status': collector.status } %}
{% endblock %}
{% block menu %}
diff --git a/src/Symfony/Bundle/DoctrineMongoDBBundle/Resources/views/Collector/mongodb.html.twig b/src/Symfony/Bundle/DoctrineMongoDBBundle/Resources/views/Collector/mongodb.html.twig
index 1b5964b76196..deb0a30e88d0 100644
--- a/src/Symfony/Bundle/DoctrineMongoDBBundle/Resources/views/Collector/mongodb.html.twig
+++ b/src/Symfony/Bundle/DoctrineMongoDBBundle/Resources/views/Collector/mongodb.html.twig
@@ -2,12 +2,12 @@
{% block toolbar %}
{% set icon %}
-
+
{% endset %}
{% set text %}
{{ collector.querycount }}
{% endset %}
- {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with {'icon' : icon, 'text' : text, 'status' : collector.status } only %}
+ {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': profiler_url, 'status': collector.status } %}
{% endblock %}
{% block menu %}
diff --git a/src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig b/src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig
index 35819686b919..288163dccbe0 100644
--- a/src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig
+++ b/src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig
@@ -2,7 +2,7 @@
{% block toolbar %}
{% set icon %}
-
+
{% endset %}
{% set text %}
@@ -15,7 +15,7 @@
{% endif %}
{% endset %}
- {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with {'icon' : icon, 'text' : text, 'status' : collector.status } only %}
+ {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': profiler_url, 'status': collector.status } %}
{% endblock %}
{% block menu %}
diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig
index 5487151b4dbb..1ab981e48c04 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig
+++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig
@@ -4,7 +4,7 @@
{% set icon %}
{% endset %}
- {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with {'icon' : icon, 'text' : collector.symfonyversion} only %}
+ {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': false, 'text': collector.symfonyversion } %}
{% set text %}
PHP {{ collector.phpversion }}
@@ -13,10 +13,10 @@
|
accel
{% endset %}
- {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with {'text' : text} only %}
+ {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': false, 'icon': '' } %}
{% set icon %}
-
{% endset %}
{% set text %}
@@ -32,5 +32,5 @@
{{ collector.token }}
{% endif %}
{% endset %}
- {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with {'icon' : icon, 'text' : text} only %}
+ {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': profiler_url } %}
{% endblock %}
diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/logger.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/logger.html.twig
index 062acd23b842..c12c7b72db37 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/logger.html.twig
+++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/logger.html.twig
@@ -2,12 +2,12 @@
{% block toolbar %}
{% set icon %}
-
+
{% endset %}
{% set text %}
{{ collector.counterrors }}
{% endset %}
- {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with {'icon' : icon, 'text' : text, 'status' : collector.status } only %}
+ {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': profiler_url, 'status': collector.status } %}
{% endblock %}
{% block menu %}
diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/memory.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/memory.html.twig
index 80687d39c013..d2e0328388e5 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/memory.html.twig
+++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/memory.html.twig
@@ -7,5 +7,5 @@
{% set text %}
{{ '%.0f'|format(collector.memory / 1024) }} KB
{% endset %}
- {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with {'icon' : icon, 'text' : text, 'status' : collector.status } only %}
+ {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': false, 'status': collector.status } %}
{% endblock %}
diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/request.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/request.html.twig
index 15b0a368d037..13cb75bda999 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/request.html.twig
+++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/request.html.twig
@@ -2,7 +2,7 @@
{% block toolbar %}
{% set icon %}
-
+
{% endset %}
{% set text %}
{{ collector.route ? collector.route : 'NONE' }}
@@ -13,7 +13,7 @@
|
{{ collector.contenttype }}
{% endset %}
- {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with {'icon' : icon, 'text' : text, 'status' : collector.status } only %}
+ {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': profiler_url, 'status': collector.status } %}
{% endblock %}
{% block menu %}
diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/timer.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/timer.html.twig
index 234d96ed4168..420c8bba2b6a 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/timer.html.twig
+++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/timer.html.twig
@@ -7,5 +7,5 @@
{% set text %}
{{ '%.0f'|format(collector.time * 1000) }} ms
{% endset %}
- {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with {'icon' : icon, 'text' : text, 'status' : collector.status } only %}
+ {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': false, 'status': collector.status } %}
{% endblock %}
diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.html.twig
index 03043bd10eee..e5fa9b4ffa24 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.html.twig
+++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.html.twig
@@ -24,7 +24,7 @@
{% for name, template in templates %}
- {{ template.renderblock('toolbar', { 'collector': profiler.get(name), 'profiler_url': profiler_url }) }}
+ {{ template.renderblock('toolbar', { 'collector': profiler.get(name), 'profiler_url': profiler_url, 'token': profiler.token, 'name': name }) }}
{% endfor %}
{% if 'normal' != position %}
diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_item.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_item.html.twig
index 410f8cef81aa..7afa5f61bb77 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_item.html.twig
+++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_item.html.twig
@@ -1,12 +1,20 @@
-{% set style = '' %}
-{% if status is defined %}
- {% if 'error' == status %}
- {% set style = 'background-color: #f66;' %}
- {% elseif 'warning' == status %}
- {% set style = 'background-color: #fa2;' %}
- {% endif %}
+{% if link %}
+ {% set icon %}
+ {% if 'config' == name %}
+ {{ icon }}
+ {% else %}
+ {{ icon }}
+ {% endif %}
+ {% endset %}
+{% endif %}
+{% if 'info' == status|default('info') %}
+ {% set style = '' %}
+{% elseif 'warning' == status %}
+ {% set style = 'background-color: #fa2;' %}
+{% else %}
+ {% set style = 'background-color: #f66;' %}
{% endif %}
- {% if icon is defined %}{{ icon }}{% endif %}
- {% if text is defined %}{{ text }}{% endif %}
-
\ No newline at end of file
+ {{ icon|default('') }}
+ {{ text|default('') }}
+