|
4 | 4 | {% block toolbar %} |
5 | 5 | {% if collector.queryCount > 0 %} |
6 | 6 | {% set icon %} |
7 | | - {{ include('@Neo4j/neo4j.svg') }} |
| 7 | +{# {{ include('@Neo4j/public/images/neo4j.svg') }}#} |
8 | 8 | <span class="sf-toolbar-value">{{ collector.queryCount }}</span> |
9 | 9 | <span class="sf-toolbar-label">stmt.</span> |
10 | 10 | {% endset %} |
|
22 | 22 | {% endif %} |
23 | 23 | <div class="sf-toolbar-info-piece"> |
24 | 24 | <b>Total time</b> |
25 | | - <span class="sf-toolbar-status">{{ '%0.2f'|format(collector.time) }}ms</span> |
| 25 | +{# <span class="sf-toolbar-status">{{ '%0.2f'|format(collector.time) }}ms</span>#} |
26 | 26 | </div> |
27 | 27 |
|
28 | 28 | {% endset %} |
29 | 29 | {% include '@WebProfiler/Profiler/toolbar_item.html.twig' with { 'link': profiler_url, 'status': collector.failedStatements|length ? 'red' : '' } %} |
30 | 30 | {% endif %} |
31 | 31 | {% endblock %} |
32 | 32 |
|
33 | | -{% block head %} |
34 | | - <link rel="stylesheet" href="{{ asset('bundles/neo4j/css/neo4j.css') }}" /> |
35 | | - <script type="text/javascript" src="{{ asset("bundles/neo4j/js/neo4j.js") }}"></script> |
36 | | - {{ parent() }} |
37 | | -{% endblock %} |
| 33 | +{#{% block head %}#} |
| 34 | +{# <link rel="stylesheet" href="{{ asset('bundles/neo4j/css/neo4j.css') }}" />#} |
| 35 | +{# <script type="text/javascript" src="{{ asset("bundles/neo4j/js/neo4j.js") }}"></script>#} |
| 36 | +{# {{ parent() }}#} |
| 37 | +{#{% endblock %}#} |
38 | 38 |
|
39 | 39 | {% block menu %} |
40 | 40 | {# This left-hand menu appears when using the full-screen profiler. #} |
41 | 41 | <span class="label {{ collector.queryCount == 0 ? 'disabled' }} {{ collector.failedStatements|length ? 'label-status-error' }}"> |
42 | 42 | <span class="icon"> |
43 | | - {{ include('@Neo4j/Icon/neo4j.svg') }} |
| 43 | +{# {{ include('@Neo4j/Icon/neo4j.svg') }}#} |
44 | 44 | </span> |
45 | 45 | <strong>Neo4j</strong> |
46 | 46 | {% if collector.failedStatements|length %} |
|
68 | 68 | {% set start_time = statement.start_time|default(null) %} |
69 | 69 | {% set end_time = statement.end_time|default(null) %} |
70 | 70 |
|
71 | | - <td class="nowrap{% if not statement.success %} bg-red{% endif %}">{{ idx + 1 }}</td> |
| 71 | + <td class="nowrap">{{ idx + 1 }}</td> |
72 | 72 | <td class="nowrap">{% if start_time is not null and end_time is not null %}{{ '%0.2f'|format(end_time - start_time) }}ms{% endif %}</td> |
73 | 73 | <td> |
74 | 74 | <div> |
|
85 | 85 | <div> |
86 | 86 | <strong class="font-normal text-small">Tag</strong>: {{ statement.tag|default('N/A')|yaml_encode }} |
87 | 87 | </div> |
88 | | - {% if statement.success %} |
89 | | - <div> |
90 | | - <strong class="font-normal text-small">Number of results</strong>: {{ statement.nb_results }} |
91 | | - </div> |
92 | | - <div> |
93 | | - <strong class="font-normal text-small">Scheme</strong>: {{ statement.scheme }} |
94 | | - </div> |
| 88 | +{# {% if statement.success %}#} |
95 | 89 | <div> |
96 | | - <strong class="font-normal text-small">Statistics</strong>: {{ statement.statistics|yaml_encode }} |
| 90 | + <strong class="font-normal text-small">Number of results</strong>: {{ statement.nb_results|default('N/A') }} |
97 | 91 | </div> |
98 | | - {% else %} |
99 | 92 | <div> |
100 | | - <strong class="font-normal text-small">Type</strong>: {{ statement.exceptionCode }} |
| 93 | + <strong class="font-normal text-small">Scheme</strong>: {{ statement.scheme|default('N/A') }} |
101 | 94 | </div> |
102 | 95 | <div> |
103 | | - <strong class="font-normal text-small">message</strong>: {{ statement.exceptionMessage }} |
| 96 | + <strong class="font-normal text-small">Statistics</strong>: {{ statement|yaml_encode }} |
104 | 97 | </div> |
105 | | - {% endif %} |
| 98 | +{# {% else %}#} |
| 99 | +{# <div>#} |
| 100 | +{# <strong class="font-normal text-small">Type</strong>: {{ statement.exceptionCode }}#} |
| 101 | +{# </div>#} |
| 102 | +{# <div>#} |
| 103 | +{# <strong class="font-normal text-small">message</strong>: {{ statement.exceptionMessage }}#} |
| 104 | +{# </div>.suc#} |
| 105 | +{# {% endif %}#} |
106 | 106 | </div> |
107 | 107 | </td> |
108 | 108 | </tr> |
|
0 commit comments