Skip to content

Commit ff35388

Browse files
Merge pull request #4 from dayspring-tech/fix/profiler_for_in_if
fix profiler for in if
2 parents bf80e3e + 9db6c91 commit ff35388

File tree

1 file changed

+38
-36
lines changed

1 file changed

+38
-36
lines changed

Resources/views/Panel/configuration.html.twig

+38-36
Original file line numberDiff line numberDiff line change
@@ -36,42 +36,44 @@
3636
</tr>
3737
</thead>
3838
<tbody>
39-
{% for name, config in configuration.datasources if config is iterable %}
40-
<tr>
41-
<th rowspan="5" style="vertical-align: top;">
42-
{{ name }}
43-
</th>
44-
<th>Adapter</th>
45-
<td>{{ config.adapter }}</td>
46-
</tr>
47-
<tr>
48-
<th>DSN</th>
49-
<td>{{ config.connection.dsn }}</td>
50-
</tr>
51-
<tr>
52-
<th>Class</th>
53-
<td>{{ config.connection.classname }}</td>
54-
</tr>
55-
<tr>
56-
<th>Options</th>
57-
<td>
58-
<ul>
59-
{% for key, value in config.connection.options %}
60-
<li>{{ key }} : {{ value }}</li>
61-
{% endfor %}
62-
</ul>
63-
</td>
64-
</tr>
65-
<tr>
66-
<th>Attributes</th>
67-
<td>
68-
<ul>
69-
{% for key, value in config.connection.attributes %}
70-
<li>{{ key }} : {{ value }}</li>
71-
{% endfor %}
72-
</ul>
73-
</td>
74-
</tr>
39+
{% for name, config in configuration.datasources %}
40+
{% if config is iterable %}
41+
<tr>
42+
<th rowspan="5" style="vertical-align: top;">
43+
{{ name }}
44+
</th>
45+
<th>Adapter</th>
46+
<td>{{ config.adapter }}</td>
47+
</tr>
48+
<tr>
49+
<th>DSN</th>
50+
<td>{{ config.connection.dsn }}</td>
51+
</tr>
52+
<tr>
53+
<th>Class</th>
54+
<td>{{ config.connection.classname }}</td>
55+
</tr>
56+
<tr>
57+
<th>Options</th>
58+
<td>
59+
<ul>
60+
{% for key, value in config.connection.options %}
61+
<li>{{ key }} : {{ value }}</li>
62+
{% endfor %}
63+
</ul>
64+
</td>
65+
</tr>
66+
<tr>
67+
<th>Attributes</th>
68+
<td>
69+
<ul>
70+
{% for key, value in config.connection.attributes %}
71+
<li>{{ key }} : {{ value }}</li>
72+
{% endfor %}
73+
</ul>
74+
</td>
75+
</tr>
76+
{% endif %}
7577
{% endfor %}
7678
</tbody>
7779
</table>

0 commit comments

Comments
 (0)