merged branch fabpot/webprofiler-master (PR #7286)

This PR was merged into the master branch.

Commits
-------

6ead8a1 [WebProfilerBundle] removed the display of some information when their value is n/a

Discussion
----------

[WebProfilerBundle] removed the display of some information when their value is n/a

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #7002
| License       | MIT
| Doc PR        | n/a
This commit is contained in:
Fabien Potencier 2013-03-06 18:17:21 +01:00
commit e1b3ce7565

View File

@ -49,24 +49,33 @@
<img width="21" height="28" alt="Environment" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAcCAMAAAC5xgRsAAAAZlBMVEX///////////////////////////////////////////////////////////////////////////////////////////+ZmZmZmZlISEhJSUmdnZ1HR0fR0dFZWVlpaWlfX18/Pz+puygPAAAAIXRSTlMACwwlJygpLzIzNjs8QEtMUmd6e32AucDBw8fIydTm6u5l8MjvAAAAo0lEQVR42r2P2Q6CMBBFL6XsZRGRfZv//0nbDBNEE19MnJeTc5ILKf58ahiUwzy/AJpIWwREwQnEXRdbGCLjrO+djWRvVMiJcigxB7viGogxDdJpSmHEmCVPS7YczJvgUu+CS30IvtbNYZMvsGVo2mVpG/kbm4auiCpdcC3YPCAhSpAdUzaAn6qPKZtUT6ZSzb4bi2hdo9MQ1nX4ASjfV+/4/Z40pyCHrNTbIgAAAABJRU5ErkJggg=="> <img width="21" height="28" alt="Environment" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAcCAMAAAC5xgRsAAAAZlBMVEX///////////////////////////////////////////////////////////////////////////////////////////+ZmZmZmZlISEhJSUmdnZ1HR0fR0dFZWVlpaWlfX18/Pz+puygPAAAAIXRSTlMACwwlJygpLzIzNjs8QEtMUmd6e32AucDBw8fIydTm6u5l8MjvAAAAo0lEQVR42r2P2Q6CMBBFL6XsZRGRfZv//0nbDBNEE19MnJeTc5ILKf58ahiUwzy/AJpIWwREwQnEXRdbGCLjrO+djWRvVMiJcigxB7viGogxDdJpSmHEmCVPS7YczJvgUu+CS30IvtbNYZMvsGVo2mVpG/kbm4auiCpdcC3YPCAhSpAdUzaAn6qPKZtUT6ZSzb4bi2hdo9MQ1nX4ASjfV+/4/Z40pyCHrNTbIgAAAABJRU5ErkJggg==">
<span class="sf-toolbar-info-piece-additional-detail {{ debug_status_class }}"> </span> <span class="sf-toolbar-info-piece-additional-detail {{ debug_status_class }}"> </span>
<span class="sf-toolbar-info-piece-additional sf-toolbar-status">{{ token }}</span> <span class="sf-toolbar-info-piece-additional sf-toolbar-status">{{ token }}</span>
<span class="sf-toolbar-info-piece-additional-detail"> {% if 'n/a' != collector.appname or 'n/a' != collector.env %}
<span class="sf-toolbar-info-with-delimiter">{{ collector.appname }}</span><span>{{ collector.env }}</span> <span class="sf-toolbar-info-piece-additional-detail">
</span> <span class="sf-toolbar-info-with-delimiter">{{ collector.appname }}</span>
<span>{{ collector.env }}</span>
</span>
{% endif %}
{% endset %} {% endset %}
{% set text %} {% set text %}
{% spaceless %} {% spaceless %}
<div class="sf-toolbar-info-piece"> {% if 'n/a' != collector.appname %}
<b>Name</b> <div class="sf-toolbar-info-piece">
<span>{{ collector.appname }}</span> <b>Name</b>
</div> <span>{{ collector.appname }}</span>
<div class="sf-toolbar-info-piece"> </div>
<b>Environment</b> {% endif %}
<span>{{ collector.env }}</span> {% if 'n/a' != collector.env %}
</div> <div class="sf-toolbar-info-piece">
<div class="sf-toolbar-info-piece"> <b>Environment</b>
<b>Debug</b> <span>{{ collector.env }}</span>
<span class="{{ debug_status_class }}">{{ collector.debug ? 'en' : 'dis' }}abled</span> </div>
</div> {% endif %}
{% if 'n/a' != collector.debug %}
<div class="sf-toolbar-info-piece">
<b>Debug</b>
<span class="{{ debug_status_class }}">{{ collector.debug ? 'en' : 'dis' }}abled</span>
</div>
{% endif %}
<div class="sf-toolbar-info-piece"> <div class="sf-toolbar-info-piece">
<b>Token</b> <b>Token</b>
<span> <span>
@ -100,18 +109,24 @@
<th>Symfony version</th> <th>Symfony version</th>
<td>{{ collector.symfonyversion }}</td> <td>{{ collector.symfonyversion }}</td>
</tr> </tr>
<tr> {% if 'n/a' != collector.appname %}
<th>Application name</th> <tr>
<td>{{ collector.appname }}</td> <th>Application name</th>
</tr> <td>{{ collector.appname }}</td>
<tr> </tr>
<th>Environment</th> {% endif %}
<td>{{ collector.env }}</td> {% if 'n/a' != collector.env %}
</tr> <tr>
<tr> <th>Environment</th>
<th>Debug</th> <td>{{ collector.env }}</td>
<td>{{ collector.debug ? 'enabled' : 'disabled' }}</td> </tr>
</tr> {% endif %}
{% if 'n/a' != collector.debug %}
<tr>
<th>Debug</th>
<td>{{ collector.debug ? 'enabled' : 'disabled' }}</td>
</tr>
{% endif %}
</table> </table>
<h2>PHP configuration</h2> <h2>PHP configuration</h2>