@openeuropa/bcl-base-templates 0.18.0 → 0.21.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.
- package/content-type.html.twig +14 -0
- package/listing-page.html.twig +13 -13
- package/package.json +11 -11
package/content-type.html.twig
CHANGED
|
@@ -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/listing-page.html.twig
CHANGED
|
@@ -17,32 +17,32 @@
|
|
|
17
17
|
{% block content_top %}
|
|
18
18
|
{% include '@oe-bcl/bcl-button/button.html.twig' with filter_button only %}
|
|
19
19
|
<div class="row">
|
|
20
|
-
<div class="col-md-6 col-lg-8">
|
|
21
|
-
<h4>
|
|
20
|
+
<div class="col-md-6 col-lg-8 align-self-center">
|
|
21
|
+
<h4 class="mb-0">
|
|
22
22
|
<span class="text-capitalize">
|
|
23
23
|
{{- _page_title -}}
|
|
24
24
|
</span>
|
|
25
25
|
({{ listing.items.length }})
|
|
26
26
|
</h4>
|
|
27
27
|
</div>
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
28
|
+
{% if badges is not empty and badges is iterable %}
|
|
29
|
+
<div class="col-md-12 order-md-2 mt-3">
|
|
30
|
+
{% for badge in badges %}
|
|
31
|
+
{% include '@oe-bcl/bcl-badge/badge.html.twig' with badge|merge({
|
|
32
|
+
attributes: create_attribute().addClass(["mb-2", "me-2"])
|
|
33
|
+
}) only %}
|
|
34
|
+
{% endfor %}
|
|
35
|
+
</div>
|
|
36
|
+
{% endif %}
|
|
37
37
|
<div class="col-md-6 col-lg-4 mt-3 mt-md-0">
|
|
38
38
|
<div class="float-md-end d-md-flex align-items-center mb-4 mb-md-0">
|
|
39
39
|
{% include '@oe-bcl/bcl-select/select.html.twig' with sort_select|merge({
|
|
40
|
-
attributes: create_attribute().addClass(['ms-md-2
|
|
40
|
+
attributes: create_attribute().addClass(['ms-md-2']),
|
|
41
41
|
}) only %}
|
|
42
42
|
</div>
|
|
43
43
|
</div>
|
|
44
44
|
</div>
|
|
45
|
-
<hr class="d-none d-md-block mb-4"/>
|
|
45
|
+
<hr class="d-none d-md-block mb-4-75"/>
|
|
46
46
|
{% endblock %}
|
|
47
47
|
|
|
48
48
|
{% block content %}
|
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.
|
|
5
|
+
"version": "0.21.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.
|
|
12
|
-
"@openeuropa/bcl-button": "^0.
|
|
13
|
-
"@openeuropa/bcl-content-banner": "^0.
|
|
14
|
-
"@openeuropa/bcl-footer": "^0.
|
|
15
|
-
"@openeuropa/bcl-header": "^0.
|
|
16
|
-
"@openeuropa/bcl-listing": "^0.
|
|
17
|
-
"@openeuropa/bcl-offcanvas": "^0.
|
|
18
|
-
"@openeuropa/bcl-pagination": "^0.
|
|
19
|
-
"@openeuropa/bcl-select": "^0.
|
|
11
|
+
"@openeuropa/bcl-badge": "^0.21.0",
|
|
12
|
+
"@openeuropa/bcl-button": "^0.21.0",
|
|
13
|
+
"@openeuropa/bcl-content-banner": "^0.21.0",
|
|
14
|
+
"@openeuropa/bcl-footer": "^0.21.0",
|
|
15
|
+
"@openeuropa/bcl-header": "^0.21.0",
|
|
16
|
+
"@openeuropa/bcl-listing": "^0.21.0",
|
|
17
|
+
"@openeuropa/bcl-offcanvas": "^0.21.0",
|
|
18
|
+
"@openeuropa/bcl-pagination": "^0.21.0",
|
|
19
|
+
"@openeuropa/bcl-select": "^0.21.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": "
|
|
35
|
+
"gitHead": "18c01b34ca76780f480c692c566dfe507d961ccf"
|
|
36
36
|
}
|