Tweaks and bug fixes
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{% block toolbar %}
|
{% block toolbar %}
|
||||||
{% set icon %}
|
{% set icon %}
|
||||||
{{ include('@WebProfiler/Icon/ajax.svg.twig') }}
|
{{ include('@WebProfiler/Icon/ajax.svg') }}
|
||||||
<span class="sf-toolbar-value sf-toolbar-ajax-requests">0</span>
|
<span class="sf-toolbar-value sf-toolbar-ajax-requests">0</span>
|
||||||
{% endset %}
|
{% endset %}
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
{% set icon %}
|
{% set icon %}
|
||||||
{% if collector.symfonyState is defined %}
|
{% if collector.symfonyState is defined %}
|
||||||
<span class="sf-toolbar-label">
|
<span class="sf-toolbar-label">
|
||||||
{{ include('@WebProfiler/Icon/symfony.svg.twig') }}
|
{{ include('@WebProfiler/Icon/symfony.svg') }}
|
||||||
</span>
|
</span>
|
||||||
<span class="sf-toolbar-value">{{ collector.symfonyversion }}</span>
|
<span class="sf-toolbar-value">{{ collector.symfonyversion }}</span>
|
||||||
{% elseif collector.applicationname %}
|
{% elseif collector.applicationname %}
|
||||||
@ -71,7 +71,10 @@
|
|||||||
|
|
||||||
<div class="sf-toolbar-info-piece sf-toolbar-info-php">
|
<div class="sf-toolbar-info-piece sf-toolbar-info-php">
|
||||||
<b>PHP version</b>
|
<b>PHP version</b>
|
||||||
<span>{{ collector.phpversion }}</span>
|
<span>
|
||||||
|
{{ collector.phpversion }}
|
||||||
|
<a href="{{ path('_profiler_phpinfo') }}">View phpinfo()</a>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="sf-toolbar-info-piece sf-toolbar-info-php-ext">
|
<div class="sf-toolbar-info-piece sf-toolbar-info-php-ext">
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
{% if collector.data.nb_errors > 0 or collector.data.forms|length %}
|
{% if collector.data.nb_errors > 0 or collector.data.forms|length %}
|
||||||
{% set status_color = collector.data.nb_errors ? 'red' : '' %}
|
{% set status_color = collector.data.nb_errors ? 'red' : '' %}
|
||||||
{% set icon %}
|
{% set icon %}
|
||||||
{{ include('@WebProfiler/Icon/form.svg.twig') }}
|
{{ include('@WebProfiler/Icon/form.svg') }}
|
||||||
<span class="sf-toolbar-value">
|
<span class="sf-toolbar-value">
|
||||||
{% if collector.data.nb_errors %}
|
{% if collector.data.nb_errors %}
|
||||||
{{ collector.data.nb_errors }}
|
{{ collector.data.nb_errors }}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
{% set icon %}
|
{% set icon %}
|
||||||
{% set status_color = collector.counterrors ? 'red' : collector.countdeprecations ? 'yellow' : '' %}
|
{% set status_color = collector.counterrors ? 'red' : collector.countdeprecations ? 'yellow' : '' %}
|
||||||
{% set error_count = collector.counterrors + collector.countdeprecations + collector.countscreams %}
|
{% set error_count = collector.counterrors + collector.countdeprecations + collector.countscreams %}
|
||||||
{{ include('@WebProfiler/Icon/logger.svg.twig') }}
|
{{ include('@WebProfiler/Icon/logger.svg') }}
|
||||||
<span class="sf-toolbar-value">{{ error_count }}</span>
|
<span class="sf-toolbar-value">{{ error_count }}</span>
|
||||||
{% endset %}
|
{% endset %}
|
||||||
|
|
||||||
@ -80,7 +80,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% if collector.logs %}
|
{% if collector.logs %}
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th>#</th>
|
<th>#</th>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
{% block toolbar %}
|
{% block toolbar %}
|
||||||
{% set icon %}
|
{% set icon %}
|
||||||
{% set status_color = (collector.memory / 1024 / 1024) > 50 ? 'yellow' : '' %}
|
{% set status_color = (collector.memory / 1024 / 1024) > 50 ? 'yellow' : '' %}
|
||||||
{{ include('@WebProfiler/Icon/memory.svg.twig') }}
|
{{ include('@WebProfiler/Icon/memory.svg') }}
|
||||||
<span class="sf-toolbar-value">{{ '%.1f'|format(collector.memory / 1024 / 1024) }}</span>
|
<span class="sf-toolbar-value">{{ '%.1f'|format(collector.memory / 1024 / 1024) }}</span>
|
||||||
<span class="sf-toolbar-label">MB</span>
|
<span class="sf-toolbar-label">MB</span>
|
||||||
{% endset %}
|
{% endset %}
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
{% set status_color = collector.events|length and collector.duration > 1000 ? 'yellow' : '' %}
|
{% set status_color = collector.events|length and collector.duration > 1000 ? 'yellow' : '' %}
|
||||||
|
|
||||||
{% set icon %}
|
{% set icon %}
|
||||||
{{ include('@WebProfiler/Icon/time.svg.twig') }}
|
{{ include('@WebProfiler/Icon/time.svg') }}
|
||||||
<span class="sf-toolbar-value">{{ total_time }}</span>
|
<span class="sf-toolbar-value">{{ total_time }}</span>
|
||||||
<span class="sf-toolbar-label">ms</span>
|
<span class="sf-toolbar-label">ms</span>
|
||||||
{% endset %}
|
{% endset %}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
{% block toolbar %}
|
{% block toolbar %}
|
||||||
{% if collector.messages|length %}
|
{% if collector.messages|length %}
|
||||||
{% set icon %}
|
{% set icon %}
|
||||||
{{ include('@WebProfiler/Icon/translation.svg.twig') }}
|
{{ include('@WebProfiler/Icon/translation.svg') }}
|
||||||
{% set status_color = collector.countMissings ? 'red' : collector.countFallbacks ? 'yellow' : '' %}
|
{% set status_color = collector.countMissings ? 'red' : collector.countFallbacks ? 'yellow' : '' %}
|
||||||
{% set error_count = collector.countMissings + collector.countFallbacks %}
|
{% set error_count = collector.countMissings + collector.countFallbacks %}
|
||||||
<span class="sf-toolbar-value">{{ error_count ?: collector.countdefines }}</span>
|
<span class="sf-toolbar-value">{{ error_count ?: collector.countdefines }}</span>
|
||||||
@ -15,20 +15,20 @@
|
|||||||
<div class="sf-toolbar-info-piece">
|
<div class="sf-toolbar-info-piece">
|
||||||
<b>Missing messages</b>
|
<b>Missing messages</b>
|
||||||
<span class="sf-toolbar-status sf-toolbar-status-{{ collector.countMissings ? 'red' }}">
|
<span class="sf-toolbar-status sf-toolbar-status-{{ collector.countMissings ? 'red' }}">
|
||||||
{{ collector.countMissings|default(0) }}
|
{{ collector.countMissings }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="sf-toolbar-info-piece">
|
<div class="sf-toolbar-info-piece">
|
||||||
<b>Fallback messages</b>
|
<b>Fallback messages</b>
|
||||||
<span class="sf-toolbar-status sf-toolbar-status-{{ collector.countFallbacks ? 'yellow' }}">
|
<span class="sf-toolbar-status sf-toolbar-status-{{ collector.countFallbacks ? 'yellow' }}">
|
||||||
{{ collector.countFallbacks|default(0) }}
|
{{ collector.countFallbacks }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="sf-toolbar-info-piece">
|
<div class="sf-toolbar-info-piece">
|
||||||
<b>Defined messages</b>
|
<b>Defined messages</b>
|
||||||
<span class="sf-toolbar-status">{{ collector.countdefines|default(0) }}</span>
|
<span class="sf-toolbar-status">{{ collector.countdefines }}</span>
|
||||||
</div>
|
</div>
|
||||||
{% endset %}
|
{% endset %}
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
{% block toolbar %}
|
{% block toolbar %}
|
||||||
{% set time = collector.templatecount ? '%0.0f'|format(collector.time) : 'n/a' %}
|
{% set time = collector.templatecount ? '%0.0f'|format(collector.time) : 'n/a' %}
|
||||||
{% set icon %}
|
{% set icon %}
|
||||||
{{ include('@WebProfiler/Icon/twig.html.twig') }}
|
{{ include('@WebProfiler/Icon/twig.svg') }}
|
||||||
<span class="sf-toolbar-value">{{ time }}</span>
|
<span class="sf-toolbar-value">{{ time }}</span>
|
||||||
<span class="sf-toolbar-label">ms</span>
|
<span class="sf-toolbar-label">ms</span>
|
||||||
{% endset %}
|
{% endset %}
|
||||||
|
Before Width: | Height: | Size: 562 B After Width: | Height: | Size: 562 B |
Before Width: | Height: | Size: 481 B After Width: | Height: | Size: 481 B |
Before Width: | Height: | Size: 676 B After Width: | Height: | Size: 676 B |
Before Width: | Height: | Size: 661 B After Width: | Height: | Size: 661 B |
Before Width: | Height: | Size: 501 B After Width: | Height: | Size: 501 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 527 B After Width: | Height: | Size: 527 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 470 B After Width: | Height: | Size: 470 B |
@ -86,6 +86,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var ajaxToolbarPanel = document.querySelector('.sf-toolbar-block-ajax');
|
||||||
var tbodies = document.querySelectorAll('.sf-toolbar-ajax-request-list');
|
var tbodies = document.querySelectorAll('.sf-toolbar-ajax-request-list');
|
||||||
var state = 'ok';
|
var state = 'ok';
|
||||||
if (tbodies.length) {
|
if (tbodies.length) {
|
||||||
@ -169,7 +170,6 @@
|
|||||||
infoSpan.textContent = text;
|
infoSpan.textContent = text;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var ajaxToolbarPanel = document.querySelector('.sf-toolbar-block-ajax');
|
|
||||||
ajaxToolbarPanel.style.display = 'none';
|
ajaxToolbarPanel.style.display = 'none';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -179,7 +179,6 @@
|
|||||||
var className = 'sf-toolbar-ajax-requests sf-toolbar-value';
|
var className = 'sf-toolbar-ajax-requests sf-toolbar-value';
|
||||||
requestCounter[0].className = className;
|
requestCounter[0].className = className;
|
||||||
|
|
||||||
var ajaxToolbarPanel = document.querySelector('.sf-toolbar-block-ajax');
|
|
||||||
if (state == 'error') {
|
if (state == 'error') {
|
||||||
Sfjs.addClass(ajaxToolbarPanel, 'sf-toolbar-status-red');
|
Sfjs.addClass(ajaxToolbarPanel, 'sf-toolbar-status-red');
|
||||||
} else {
|
} else {
|
||||||
|
@ -85,10 +85,6 @@
|
|||||||
color: #AAA;
|
color: #AAA;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
/* TODO: remove it when Twig uses SVG icons */
|
|
||||||
.sf-toolbar-block-twig img {
|
|
||||||
opacity: .8;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sf-toolbar-block .sf-toolbar-info {
|
.sf-toolbar-block .sf-toolbar-info {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
@ -316,11 +312,6 @@
|
|||||||
50% { background: #444; }
|
50% { background: #444; }
|
||||||
100% { background: #222; }
|
100% { background: #222; }
|
||||||
}
|
}
|
||||||
@-o-keyframes sf-blink {
|
|
||||||
0% { background: #222; }
|
|
||||||
50% { background: #444; }
|
|
||||||
100% { background: #222; }
|
|
||||||
}
|
|
||||||
@keyframes sf-blink {
|
@keyframes sf-blink {
|
||||||
0% { background: #222; }
|
0% { background: #222; }
|
||||||
50% { background: #444; }
|
50% { background: #444; }
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
Sfjs.setPreference('toolbar/displayState', 'block');
|
Sfjs.setPreference('toolbar/displayState', 'block');
|
||||||
">
|
">
|
||||||
{{ include('@WebProfiler/Icon/symfony.svg.twig') }}
|
{{ include('@WebProfiler/Icon/symfony.svg') }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<style>
|
<style>
|
||||||
@ -44,7 +44,7 @@
|
|||||||
document.getElementById('sfMiniToolbar-{{ token }}').style.display = 'block';
|
document.getElementById('sfMiniToolbar-{{ token }}').style.display = 'block';
|
||||||
Sfjs.setPreference('toolbar/displayState', 'none');
|
Sfjs.setPreference('toolbar/displayState', 'none');
|
||||||
">
|
">
|
||||||
{{ include('@WebProfiler/Icon/close.svg.twig') }}
|
{{ include('@WebProfiler/Icon/close.svg') }}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|