File tree Expand file tree Collapse file tree 3 files changed +33
-17
lines changed
src/Symfony/Bundle/Resources/views/DataCollector Expand file tree Collapse file tree 3 files changed +33
-17
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
### Added
10
10
- [ GH #180 ] ( https://github.com/jolicode/automapper/pull/180 ) Add configuration to generate code with strict types
11
11
- [ GH #183 ] ( https://github.com/jolicode/automapper/pull/183 ) Ability to change reload strategy from AutoMapper::create()
12
+ - [ GH #193 ] ( https://github.com/jolicode/automapper/pull/193 ) add icon to symfony profiler
12
13
13
14
### Fixed
14
15
- [ GH #184 ] ( https://github.com/jolicode/automapper/pull/184 ) Fix error when mapping from stdClass to constructor with nullable/optional arguments
Original file line number Diff line number Diff line change 1
1
{% extends ' @WebProfiler/Profiler/layout.html.twig' %}
2
2
3
3
{% block toolbar %}
4
- {% set text %}
5
- {% if collector .metadatas | length == 0 %}
6
- <div class =" sf-toolbar-info-piece" >
7
- <b >AutoMapper</b >
8
- <span >No Mapper</span >
9
- </div >
10
- {% endif %}
11
- {% for metadata in collector .metadatas %}
12
- <div class =" sf-toolbar-info-piece" >
13
- <b >AutoMapper</b >
14
- <span >{{ metadata .source }} to {{ metadata .target }}</span >
15
- </div >
16
- {% endfor %}
17
- {% endset %}
18
-
19
- {{ include (' @WebProfiler/Profiler/toolbar_item.html.twig' , { ' link' : true }) }}
4
+ {% if collector .metadatas | length > 0 %}
5
+ {% set icon %}
6
+ {{ source (' @AutoMapper/DataCollector/icon.svg' ) }}
7
+ <span class =" sf-toolbar-value" >{{ collector .metadatas | length }}</span >
8
+ {% endset %}
9
+
10
+ {% set text %}
11
+ {% for metadata in collector .metadatas %}
12
+ <div class =" sf-toolbar-info-piece" >
13
+ <b >AutoMapper</b >
14
+ <span >{{ metadata .source }} to {{ metadata .target }}</span >
15
+ </div >
16
+ {% endfor %}
17
+ {% endset %}
18
+
19
+ {{ include (' @WebProfiler/Profiler/toolbar_item.html.twig' , { ' link' : true }) }}
20
+ {% endif %}
20
21
{% endblock %}
21
22
22
23
{% block menu %}
23
24
<span class =" label{{ collector .metadatas | length > 0 ? ' ' : ' disabled' }}" >
25
+ <span class =" icon" >{{ source (' @AutoMapper/DataCollector/icon.svg' ) }}</span >
24
26
<strong >AutoMapper</strong >
25
27
{% if collector .metadatas | length > 0 %}
26
28
<span class =" count" >
185
187
{% endfor %}
186
188
</div >
187
189
{% endif %}
188
- {% endblock %}
190
+ {% endblock %}
You can’t perform that action at this time.
0 commit comments