Commit bfa20f8 1 parent 6c887d2 commit bfa20f8 Copy full SHA for bfa20f8
File tree 1 file changed +9
-6
lines changed
src/bundle/Resources/views/themes/admin/ui
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
{% for action in item .children %}
4
4
{% set element = action .uri ? ' a' : ' button' %}
5
+ {% set classess = {
6
+ class : ' btn ibexa-btn ibexa-btn--ghost ibexa-btn--no-text' ~ ' ' ~ action .attributes .class |default (' ' )
7
+ } %}
8
+
5
9
{% set attr = {
6
- class : " btn ibexa-btn ibexa-btn--ghost ibexa-btn--no-text" ,
7
- title : action .label ,
8
- }| merge(action .attributes ) %}
10
+ title : action .label
11
+ }| merge(action .attributes , classess ) %}
9
12
10
13
{% if action .uri %}
11
14
{% set attr = attr | merge ({ href : action .uri })%}
14
17
{% endif %}
15
18
16
19
< {{ element }} {{ html.attributes (attr ) }}>
17
- <svg class =" ibexa-icon ibexa-icon--small" >
18
- <use xlink:href =" {{ ibexa_icon_path(action .extras .icon ) }}" ></use >
19
- </svg >
20
+ <svg class =" ibexa-icon ibexa-icon--small" >
21
+ <use xlink:href =" {{ ibexa_icon_path(action .extras .icon ) }}" ></use >
22
+ </svg >
20
23
< /{{ element }}>
21
24
{% endfor %}
You can’t perform that action at this time.
0 commit comments