Skip to content

Commit b0e2b83

Browse files
Darien Hagerweaverryan
Darien Hager
authored andcommitted
Fix incorrect instructions regarding linking to the "full panel", improve roll-over data example.
1 parent cc5ae6a commit b0e2b83

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

cookbook/profiler/data_collector.rst

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,20 +114,25 @@ following example can help you get started:
114114
{% extends 'WebProfilerBundle:Profiler:layout.html.twig' %}
115115
116116
{% block toolbar %}
117-
{# Used for the menu items along the bottom of the screen. #}
117+
{# This toolbar item may appear along the top or bottom of the screen.#}
118118
{% set icon %}
119119
<span class="icon"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAcCAQAAADVGmdYAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQffAxkBCDStonIVAAAAGXRFWHRDb21tZW50AENyZWF0ZWQgd2l0aCBHSU1QV4EOFwAAAHpJREFUOMtj3PWfgXRAuqZd/5nIsIdhVBPFmgqIjCuYOrJsYtz1fxuUOYER2TQID8afwIiQ8YIkI4TzCv5D2AgaWSuExJKMIDbA7EEVhQEWXJ6FKUY4D48m7HYU/EcWZ8JlE6qfMELPDcUJuEMPxvYazYTDWRMjOcUyAEswO+VjeQQaAAAAAElFTkSuQmCC" alt=""/></span>
120120
<span class="sf-toolbar-status">Example</span>
121121
{% endset %}
122122
123123
{% set text %}
124124
<div class="sf-toolbar-info-piece">
125-
<b>Quick roll-over</b>
126-
<b>info here</b>
125+
<b>Quick piece of data</b>
126+
<span>100 units</div>
127+
</div>
128+
<div class="sf-toolbar-info-piece">
129+
<b>Another quick thing</b>
130+
<span>300 units</div>
127131
</div>
128132
{% endset %}
129133
130-
{# Omit this next line if you do not have a "panel" section #}
134+
{# Set the "link" value to false if you do not have a big "panel"
135+
section that you want to direct the user to. #}
131136
{% include '@WebProfiler/Profiler/toolbar_item.html.twig' with { 'link': true } %}
132137
133138
{% endblock %}
@@ -138,7 +143,7 @@ following example can help you get started:
138143
{% endblock %}
139144
140145
{% block menu %}
141-
{# The left-hand menu content when looking at profiler data. #}
146+
{# This left-hand menu appears when using the full-screen profiler. #}
142147
<span class="label">
143148
<span class="icon"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAcCAQAAADVGmdYAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQffAxkBCDStonIVAAAAGXRFWHRDb21tZW50AENyZWF0ZWQgd2l0aCBHSU1QV4EOFwAAAHpJREFUOMtj3PWfgXRAuqZd/5nIsIdhVBPFmgqIjCuYOrJsYtz1fxuUOYER2TQID8afwIiQ8YIkI4TzCv5D2AgaWSuExJKMIDbA7EEVhQEWXJ6FKUY4D48m7HYU/EcWZ8JlE6qfMELPDcUJuEMPxvYazYTDWRMjOcUyAEswO+VjeQQaAAAAAElFTkSuQmCC" alt=""/></span>
144149
<strong>Example Collector</strong>

0 commit comments

Comments
 (0)