@openeuropa/bcl-base-templates 0.18.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,6 +21,7 @@
21
21
  - feedback
22
22
  - share
23
23
  - related
24
+ - messages_area
24
25
  #}
25
26
 
26
27
  {% set _with_header = header|default(false) %}
@@ -70,6 +71,19 @@
70
71
  {% endif %}
71
72
 
72
73
  <main {{ attributes }}>
74
+ {% if messages is defined and messages is not empty %}
75
+ {% block messages_area %}
76
+ <div class="container">
77
+ {% for message in messages %}
78
+ {% set message_attributes = create_attribute().addClass(['mt-lg-5', 'mt-2']) %}
79
+ {% include '@oe-bcl/bcl-alert/alert.html.twig' with message|merge({
80
+ attributes: message_attributes,
81
+ }) only %}
82
+ {% endfor %}
83
+ </div>
84
+ {% endblock %}
85
+ {% endif %}
86
+
73
87
  {% if _with_banner %}
74
88
  {% block banner %}
75
89
  {% include '@oe-bcl/bcl-content-banner/content-banner.html.twig' with banner only %}
package/package.json CHANGED
@@ -2,21 +2,21 @@
2
2
  "name": "@openeuropa/bcl-base-templates",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "0.18.0",
5
+ "version": "0.19.0",
6
6
  "description": "OE - BCL base templates",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
10
10
  "dependencies": {
11
- "@openeuropa/bcl-badge": "^0.18.0",
12
- "@openeuropa/bcl-button": "^0.18.0",
13
- "@openeuropa/bcl-content-banner": "^0.18.0",
14
- "@openeuropa/bcl-footer": "^0.18.0",
15
- "@openeuropa/bcl-header": "^0.18.0",
16
- "@openeuropa/bcl-listing": "^0.18.0",
17
- "@openeuropa/bcl-offcanvas": "^0.18.0",
18
- "@openeuropa/bcl-pagination": "^0.18.0",
19
- "@openeuropa/bcl-select": "^0.18.0"
11
+ "@openeuropa/bcl-badge": "^0.19.0",
12
+ "@openeuropa/bcl-button": "^0.19.0",
13
+ "@openeuropa/bcl-content-banner": "^0.19.0",
14
+ "@openeuropa/bcl-footer": "^0.19.0",
15
+ "@openeuropa/bcl-header": "^0.19.0",
16
+ "@openeuropa/bcl-listing": "^0.19.0",
17
+ "@openeuropa/bcl-offcanvas": "^0.19.0",
18
+ "@openeuropa/bcl-pagination": "^0.19.0",
19
+ "@openeuropa/bcl-select": "^0.19.0"
20
20
  },
21
21
  "repository": {
22
22
  "type": "git",
@@ -32,5 +32,5 @@
32
32
  "design-system",
33
33
  "twig"
34
34
  ],
35
- "gitHead": "a82834df6dff563a956a79bf2899c92742dd5820"
35
+ "gitHead": "8bfce06400c8829a46578797f0126b4e9c02e725"
36
36
  }