Skip to content

Commit 597637e

Browse files
committed
Tweaks and bug fixes
1 parent 9df0f8b commit 597637e

20 files changed

+19
-26
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/ajax.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{% block toolbar %}
44
{% set icon %}
5-
{{ include('@WebProfiler/Icon/ajax.svg.twig') }}
5+
{{ include('@WebProfiler/Icon/ajax.svg') }}
66
<span class="sf-toolbar-value sf-toolbar-ajax-requests">0</span>
77
{% endset %}
88

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{% set icon %}
2222
{% if collector.symfonyState is defined %}
2323
<span class="sf-toolbar-label">
24-
{{ include('@WebProfiler/Icon/symfony.svg.twig') }}
24+
{{ include('@WebProfiler/Icon/symfony.svg') }}
2525
</span>
2626
<span class="sf-toolbar-value">{{ collector.symfonyversion }}</span>
2727
{% elseif collector.applicationname %}
@@ -71,7 +71,10 @@
7171

7272
<div class="sf-toolbar-info-piece sf-toolbar-info-php">
7373
<b>PHP version</b>
74-
<span>{{ collector.phpversion }}</span>
74+
<span>
75+
{{ collector.phpversion }}
76+
&nbsp; <a href="{{ path('_profiler_phpinfo') }}">View phpinfo()</a>
77+
</span>
7578
</div>
7679

7780
<div class="sf-toolbar-info-piece sf-toolbar-info-php-ext">

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/form.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{% if collector.data.nb_errors > 0 or collector.data.forms|length %}
77
{% set status_color = collector.data.nb_errors ? 'red' : '' %}
88
{% set icon %}
9-
{{ include('@WebProfiler/Icon/form.svg.twig') }}
9+
{{ include('@WebProfiler/Icon/form.svg') }}
1010
<span class="sf-toolbar-value">
1111
{% if collector.data.nb_errors %}
1212
{{ collector.data.nb_errors }}

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/logger.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{% set icon %}
88
{% set status_color = collector.counterrors ? 'red' : collector.countdeprecations ? 'yellow' : '' %}
99
{% set error_count = collector.counterrors + collector.countdeprecations + collector.countscreams %}
10-
{{ include('@WebProfiler/Icon/logger.svg.twig') }}
10+
{{ include('@WebProfiler/Icon/logger.svg') }}
1111
<span class="sf-toolbar-value">{{ error_count }}</span>
1212
{% endset %}
1313

@@ -80,7 +80,7 @@
8080
</tr>
8181
</table>
8282

83-
{% if collector.logs %}
83+
{% if collector.logs %}
8484
<table>
8585
<tr>
8686
<th>#</th>

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/memory.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% block toolbar %}
44
{% set icon %}
55
{% set status_color = (collector.memory / 1024 / 1024) > 50 ? 'yellow' : '' %}
6-
{{ include('@WebProfiler/Icon/memory.svg.twig') }}
6+
{{ include('@WebProfiler/Icon/memory.svg') }}
77
<span class="sf-toolbar-value">{{ '%.1f'|format(collector.memory / 1024 / 1024) }}</span>
88
<span class="sf-toolbar-label">MB</span>
99
{% endset %}

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/time.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{% set status_color = collector.events|length and collector.duration > 1000 ? 'yellow' : '' %}
2222

2323
{% set icon %}
24-
{{ include('@WebProfiler/Icon/time.svg.twig') }}
24+
{{ include('@WebProfiler/Icon/time.svg') }}
2525
<span class="sf-toolbar-value">{{ total_time }}</span>
2626
<span class="sf-toolbar-label">ms</span>
2727
{% endset %}

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/translation.html.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% block toolbar %}
66
{% if collector.messages|length %}
77
{% set icon %}
8-
{{ include('@WebProfiler/Icon/translation.svg.twig') }}
8+
{{ include('@WebProfiler/Icon/translation.svg') }}
99
{% set status_color = collector.countMissings ? 'red' : collector.countFallbacks ? 'yellow' : '' %}
1010
{% set error_count = collector.countMissings + collector.countFallbacks %}
1111
<span class="sf-toolbar-value">{{ error_count ?: collector.countdefines }}</span>
@@ -15,20 +15,20 @@
1515
<div class="sf-toolbar-info-piece">
1616
<b>Missing messages</b>
1717
<span class="sf-toolbar-status sf-toolbar-status-{{ collector.countMissings ? 'red' }}">
18-
{{ collector.countMissings|default(0) }}
18+
{{ collector.countMissings }}
1919
</span>
2020
</div>
2121

2222
<div class="sf-toolbar-info-piece">
2323
<b>Fallback messages</b>
2424
<span class="sf-toolbar-status sf-toolbar-status-{{ collector.countFallbacks ? 'yellow' }}">
25-
{{ collector.countFallbacks|default(0) }}
25+
{{ collector.countFallbacks }}
2626
</span>
2727
</div>
2828

2929
<div class="sf-toolbar-info-piece">
3030
<b>Defined messages</b>
31-
<span class="sf-toolbar-status">{{ collector.countdefines|default(0) }}</span>
31+
<span class="sf-toolbar-status">{{ collector.countdefines }}</span>
3232
</div>
3333
{% endset %}
3434

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/twig.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% block toolbar %}
44
{% set time = collector.templatecount ? '%0.0f'|format(collector.time) : 'n/a' %}
55
{% set icon %}
6-
{{ include('@WebProfiler/Icon/twig.html.twig') }}
6+
{{ include('@WebProfiler/Icon/twig.svg') }}
77
<span class="sf-toolbar-value">{{ time }}</span>
88
<span class="sf-toolbar-label">ms</span>
99
{% endset %}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy