Skip to content

Commit c8becf4

Browse files
BKDK-418
1 parent 56e659c commit c8becf4

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

web/themes/custom/fds_ballerup_theme/templates/node/teaser/node--os2web-meetings-bp--teaser.html.twig

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% set uniqueId = 'bp-accordion-' ~ random() %}
1+
{% set uniqueId = node.label | lower | replace({" ": "-", ".": ""}) | url_encode %}
22
{%
33
set classes = [
44
node.bundle|clean_class,
@@ -23,18 +23,16 @@
2323
</div>
2424
{% endif %}
2525

26-
{% if content['#decision'] %}
27-
<div class="box box--primary">
28-
<div class="box__body">
29-
{{ content['#decision'] }}
30-
</div>
31-
</div>
32-
{% endif %}
33-
3426
{{ content.body }}
3527
{{ content.field_os2web_m_bp_enclosures }}
3628
{{ content.field_os2web_m_bp_bpas }}
3729

30+
{% if content['#decision'] %}
31+
<div>
32+
{{ content['#decision'] }}
33+
</div>
34+
{% endif %}
35+
3836
<button class="accordion-close-button js-accordion-close-current" aria-controls="{{ uniqueId }}">
3937
<span class="icon fa fa-angle-up"></span>
4038
</button>

0 commit comments

Comments
 (0)