First batch of fixes

This commit is contained in:
Javier Eguiluz 2015-07-02 12:33:45 +02:00
parent c2fcadc6fe
commit b6f413fc2c
3 changed files with 9 additions and 16 deletions

View File

@ -15,22 +15,21 @@
{% elseif 'dev' == collector.symfonyState %}
{% set block_status = 'yellow' %}
{% set symfony_version_status = 'This Symfony version is still in the development phase.' %}
<span class="sf-toolbar-status sf-toolbar-status-yellow" title="">
{% else %}
{% set block_status = '' %}
{% set symfony_version_status = '' %}
{% endif %}
{% set icon %}
<a href="https://symfony.com/" title="{{ symfony_version_status }}">
{% if collector.applicationname %}
<span class="sf-toolbar-label">{{ collector.applicationname }}</span>
<span class="sf-toolbar-value">{{ collector.applicationversion }}</span>
{% elseif collector.symfonyState is defined %}
<span class="sf-toolbar-label">symfony</span>
<span class="sf-toolbar-value">{{ collector.symfonyversion }}</span>
<a href="https://symfony.com/" title="{{ symfony_version_status }}">
<span class="sf-toolbar-label">symfony</span>
<span class="sf-toolbar-value">{{ collector.symfonyversion }}</span>
</a>
{% endif %}
</a>
{% endset %}
{% set text %}
{% if collector.applicationname %}

View File

@ -180,7 +180,7 @@
requestCounter[0].textContent = requestStack.length;
var className = 'sf-toolbar-ajax-requests sf-toolvar-value';
var className = 'sf-toolbar-ajax-requests sf-toolbar-value';
if (state == 'ok') {
className += ' sf-toolbar-status-green';
} else if (state == 'error') {

View File

@ -1,12 +1,6 @@
<div class="sf-toolbar-block sf-toolbar-block-{{ block_name|default(name) }} sf-toolbar-status-{{ block_status|default('') }}">
{% if link %}
<a href="{{ path('_profiler', { 'token': token, 'panel': name }) }}">
{% endif %}
<div class="sf-toolbar-block sf-toolbar-block-{{ block_name|default(name) }} sf-toolbar-status-{{ block_status|default('normal') }}">
{% if link %}<a href="{{ path('_profiler', { 'token': token, 'panel': name }) }}"{% endif %}
<div class="sf-toolbar-icon">{{ icon|default('') }}</div>
<div class="sf-toolbar-info">{{ text|default('') }}</div>
{% if link %}
</a>
{% endif %}
</div>
{% if link %}</a>{% endif %}
</div>