- {{ template }} |
+ {%- set file = collector.templatePaths[template]|default(false) -%}
+ {%- set link = file ? file|file_link(1) : false -%}
+ {% if link %}{{ template }}{% else %}{{ template }}{% endif %} |
{{ count }} |
{% endfor %}
diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/open.css.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/open.css.twig
index 7a0941c955a6d..d0f5cda02dccc 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/open.css.twig
+++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/open.css.twig
@@ -58,6 +58,10 @@ a.doc:hover {
margin-top: 41px;
}
+.source li code {
+ color: #555;
+}
+
.source li.selected {
background: rgba(255, 255, 153, 0.5);
}