@openeuropa/bcl-group 1.10.9 → 1.10.11
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/group-landing.html.twig +69 -69
- package/group.html.twig +19 -19
- package/package.json +11 -11
package/group-landing.html.twig
CHANGED
|
@@ -1,101 +1,101 @@
|
|
|
1
1
|
{% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" -%}
|
|
2
2
|
|
|
3
|
-
{%- block banner
|
|
3
|
+
{%- block banner -%}
|
|
4
4
|
<div class="container">
|
|
5
|
-
{
|
|
5
|
+
{%- if banner is not empty -%}
|
|
6
6
|
<div class="mt-4 mt-md-5">
|
|
7
|
-
{
|
|
7
|
+
{%- if banner.image is not empty -%}
|
|
8
8
|
<img
|
|
9
9
|
src="{{ banner.image.path }}"
|
|
10
10
|
{% if banner.image.alt is not empty %}
|
|
11
11
|
alt="{{ banner.image.alt }}"
|
|
12
12
|
{% endif %}
|
|
13
|
-
{
|
|
13
|
+
{%- if banner.image.class is not empty %}
|
|
14
14
|
class="{{ banner.image.class }}"
|
|
15
15
|
{% endif %}
|
|
16
16
|
/>
|
|
17
|
-
{
|
|
18
|
-
{
|
|
19
|
-
<div class="p-md-3-5 pt-3 bg-lighter d-md-flex n-mx-container">
|
|
17
|
+
{%- endif %}
|
|
18
|
+
{%- if banner.title is not empty -%}
|
|
19
|
+
<div class="p-md-3-5 pt-3 bg-lighter d-md-flex n-mx-container">{# -#}
|
|
20
20
|
<h1 class="mb-0 d-inline-block">{{ banner.title }}</h1>
|
|
21
|
-
{
|
|
21
|
+
{%- if banner.actions is not empty and banner.actions is iterable -%}
|
|
22
22
|
<div class="d-grid d-md-block ms-auto">
|
|
23
|
-
{
|
|
24
|
-
{
|
|
25
|
-
{
|
|
26
|
-
{
|
|
27
|
-
{
|
|
28
|
-
{
|
|
29
|
-
{
|
|
30
|
-
{
|
|
31
|
-
{
|
|
23
|
+
{%- for _action in banner.actions %}
|
|
24
|
+
{%- if _action.type == "link" %}
|
|
25
|
+
{%- include '@oe-bcl/bcl-link/link.html.twig' with _action only %}
|
|
26
|
+
{%- elseif _action.type == "button" %}
|
|
27
|
+
{%- include '@oe-bcl/bcl-button/button.html.twig' with _action only %}
|
|
28
|
+
{%- elseif _action.type == "dropdown" %}
|
|
29
|
+
{%- include '@oe-bcl/bcl-dropdown/dropdown.html.twig' with _action only %}
|
|
30
|
+
{%- endif %}
|
|
31
|
+
{%- endfor -%}
|
|
32
32
|
</div>
|
|
33
|
-
{
|
|
33
|
+
{%- endif -%}
|
|
34
34
|
</div>
|
|
35
|
-
{
|
|
35
|
+
{%- endif -%}
|
|
36
36
|
</div>
|
|
37
|
-
{
|
|
38
|
-
{
|
|
39
|
-
{
|
|
40
|
-
{
|
|
41
|
-
<div class="collapse d-md-block" id="banner-description">
|
|
42
|
-
<div class="row mt-md-4 mb-md-5 pb-md-5">
|
|
43
|
-
<div class="col-md-8">
|
|
37
|
+
{%- endif %}
|
|
38
|
+
{%- include '@oe-bcl/bcl-navigation/navigation.html.twig' with navigation only %}
|
|
39
|
+
{%- if banner_description is not empty and contact is not empty %}
|
|
40
|
+
{%- include '@oe-bcl/bcl-link/link.html.twig' with banner_description.collapse_trigger only -%}
|
|
41
|
+
<div class="collapse d-md-block" id="banner-description">{# -#}
|
|
42
|
+
<div class="row mt-md-4 mb-md-5 pb-md-5">{# -#}
|
|
43
|
+
<div class="col-md-8">{# -#}
|
|
44
44
|
<div class="ps-md-3">
|
|
45
|
-
{
|
|
45
|
+
{%- if banner_description.metas is not empty and banner_description.metas is iterable -%}
|
|
46
46
|
<div class="d-block">
|
|
47
|
-
{
|
|
47
|
+
{%- for _meta in banner_description.metas -%}
|
|
48
48
|
<p class="mb-0 me-4 d-inline-block text-muted">
|
|
49
|
-
{
|
|
49
|
+
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with _meta.icon only %}
|
|
50
50
|
{{- _meta.label -}}
|
|
51
51
|
</p>
|
|
52
|
-
{
|
|
52
|
+
{%- endfor -%}
|
|
53
53
|
</div>
|
|
54
|
-
{
|
|
55
|
-
{{ banner_description.content }}
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
<div class="col-md-4">
|
|
54
|
+
{%- endif %}
|
|
55
|
+
{{- banner_description.content -}}
|
|
56
|
+
</div>{# -#}
|
|
57
|
+
</div>{# -#}
|
|
58
|
+
<div class="col-md-4">{# -#}
|
|
59
59
|
<h2 class="mb-3 pb-2">{{ contact.title }}</h2>
|
|
60
|
-
{
|
|
61
|
-
{
|
|
62
|
-
{
|
|
63
|
-
{
|
|
64
|
-
{
|
|
65
|
-
{
|
|
66
|
-
{
|
|
67
|
-
{
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
60
|
+
{%- if contact.profiles is not empty and contact.profiles is iterable %}
|
|
61
|
+
{%- for _profile in contact.profiles %}
|
|
62
|
+
{%- include '@oe-bcl/bcl-user/user-compact.html.twig' with _profile only %}
|
|
63
|
+
{%- endfor %}
|
|
64
|
+
{%- endif %}
|
|
65
|
+
{%- if contact.more_link is not empty %}
|
|
66
|
+
{%- include '@oe-bcl/bcl-link/link.html.twig' with contact.more_link only %}
|
|
67
|
+
{%- endif -%}
|
|
68
|
+
</div>{# -#}
|
|
69
|
+
</div>{# -#}
|
|
70
70
|
</div>
|
|
71
|
-
{
|
|
71
|
+
{%- endif -%}
|
|
72
72
|
</div>
|
|
73
73
|
{%- endblock -%}
|
|
74
74
|
|
|
75
75
|
{%- block content %}
|
|
76
|
-
{
|
|
77
|
-
<div class="row mt-3">
|
|
78
|
-
<div class="col-md-8">
|
|
76
|
+
{%- if recent is not empty and members is not empty -%}
|
|
77
|
+
<div class="row mt-3">{# -#}
|
|
78
|
+
<div class="col-md-8">{# -#}
|
|
79
79
|
<h2 class="mb-4 pb-2">{{ recent.title }}</h2>
|
|
80
|
-
{
|
|
81
|
-
</div>
|
|
82
|
-
<div class="col-md-4">
|
|
83
|
-
<h2 class="mt-4 mt-md-0 mb-4 pb-2">{{ members.title}}</h2>
|
|
84
|
-
{
|
|
85
|
-
{
|
|
86
|
-
{
|
|
87
|
-
{
|
|
88
|
-
{
|
|
89
|
-
{
|
|
90
|
-
{
|
|
91
|
-
{
|
|
92
|
-
</div>
|
|
80
|
+
{%- include '@oe-bcl/bcl-recent-activities/recent-activities.html.twig' with recent.block_data only -%}
|
|
81
|
+
</div>{# -#}
|
|
82
|
+
<div class="col-md-4">{# -#}
|
|
83
|
+
<h2 class="mt-4 mt-md-0 mb-4 pb-2">{{ members.title }}</h2>
|
|
84
|
+
{%- if members.profiles is not empty and members.profiles is iterable %}
|
|
85
|
+
{%- for _profile in members.profiles %}
|
|
86
|
+
{%- include '@oe-bcl/bcl-user/user-compact.html.twig' with _profile only %}
|
|
87
|
+
{%- endfor %}
|
|
88
|
+
{%- endif %}
|
|
89
|
+
{%- if members.more_link is not empty %}
|
|
90
|
+
{%- include '@oe-bcl/bcl-link/link.html.twig' with members.more_link only %}
|
|
91
|
+
{%- endif -%}
|
|
92
|
+
</div>{# -#}
|
|
93
93
|
</div>
|
|
94
|
-
{
|
|
95
|
-
{
|
|
96
|
-
<h2 class="my-4 pt-3 pb-2">{{ contributions.title}}</h2>
|
|
97
|
-
{
|
|
98
|
-
{
|
|
99
|
-
{
|
|
100
|
-
{
|
|
94
|
+
{%- endif %}
|
|
95
|
+
{%- if contributions is not empty -%}
|
|
96
|
+
<h2 class="my-4 pt-3 pb-2">{{ contributions.title }}</h2>
|
|
97
|
+
{%- if contributions.listing is not empty %}
|
|
98
|
+
{%- include '@oe-bcl/bcl-listing/listing.html.twig' with contributions.listing only %}
|
|
99
|
+
{%- endif %}
|
|
100
|
+
{%- endif %}
|
|
101
101
|
{%- endblock -%}
|
package/group.html.twig
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
{% extends "@oe-bcl/bcl-base-templates/listing-page.html.twig" -%}
|
|
2
2
|
|
|
3
|
-
{%- block banner
|
|
4
|
-
<div class="container mt-4 mt-md-5">
|
|
5
|
-
<div class="col-xxl-11">
|
|
6
|
-
<div class="p-md-3-5 pt-3 bg-lighter d-md-flex n-mx-container">
|
|
3
|
+
{%- block banner -%}
|
|
4
|
+
<div class="container mt-4 mt-md-5">{# -#}
|
|
5
|
+
<div class="col-xxl-11">{# -#}
|
|
6
|
+
<div class="p-md-3-5 pt-3 bg-lighter d-md-flex n-mx-container">{# -#}
|
|
7
7
|
<h1 class="mb-0 d-inline-block">{{ banner.main_title }}</h1>
|
|
8
|
-
{
|
|
8
|
+
{%- if banner.actions is not empty and banner.actions is iterable -%}
|
|
9
9
|
<div class="d-grid d-md-block ms-auto">
|
|
10
|
-
{
|
|
11
|
-
{
|
|
12
|
-
{
|
|
13
|
-
{
|
|
14
|
-
{
|
|
15
|
-
{
|
|
16
|
-
{
|
|
17
|
-
{
|
|
18
|
-
{
|
|
10
|
+
{%- for _action in banner.actions %}
|
|
11
|
+
{%- if _action.type == "link" %}
|
|
12
|
+
{%- include '@oe-bcl/bcl-link/link.html.twig' with _action only %}
|
|
13
|
+
{%- elseif _action.type == "button" %}
|
|
14
|
+
{%- include '@oe-bcl/bcl-button/button.html.twig' with _action only %}
|
|
15
|
+
{%- elseif _action.type == "dropdown" %}
|
|
16
|
+
{%- include '@oe-bcl/bcl-dropdown/dropdown.html.twig' with _action only %}
|
|
17
|
+
{%- endif %}
|
|
18
|
+
{%- endfor -%}
|
|
19
19
|
</div>
|
|
20
|
-
{
|
|
20
|
+
{%- endif -%}
|
|
21
21
|
</div>
|
|
22
|
-
{
|
|
23
|
-
{
|
|
24
|
-
{
|
|
25
|
-
</div>
|
|
22
|
+
{%- if navigation is not empty %}
|
|
23
|
+
{%- include '@oe-bcl/bcl-navigation/navigation.html.twig' with navigation only %}
|
|
24
|
+
{%- endif -%}
|
|
25
|
+
</div>{# -#}
|
|
26
26
|
</div>
|
|
27
27
|
{%- endblock -%}
|
package/package.json
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-group",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "1.10.
|
|
5
|
+
"version": "1.10.11",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
9
|
"description": "OE - BCL group",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@openeuropa/bcl-base-templates": "^1.10.
|
|
12
|
-
"@openeuropa/bcl-button": "^1.10.
|
|
13
|
-
"@openeuropa/bcl-dropdown": "^1.10.
|
|
14
|
-
"@openeuropa/bcl-icon": "^1.10.
|
|
15
|
-
"@openeuropa/bcl-link": "^1.10.
|
|
16
|
-
"@openeuropa/bcl-listing": "^1.10.
|
|
17
|
-
"@openeuropa/bcl-navigation": "^1.10.
|
|
18
|
-
"@openeuropa/bcl-recent-activities": "^1.10.
|
|
19
|
-
"@openeuropa/bcl-user": "^1.10.
|
|
11
|
+
"@openeuropa/bcl-base-templates": "^1.10.11",
|
|
12
|
+
"@openeuropa/bcl-button": "^1.10.11",
|
|
13
|
+
"@openeuropa/bcl-dropdown": "^1.10.11",
|
|
14
|
+
"@openeuropa/bcl-icon": "^1.10.11",
|
|
15
|
+
"@openeuropa/bcl-link": "^1.10.11",
|
|
16
|
+
"@openeuropa/bcl-listing": "^1.10.11",
|
|
17
|
+
"@openeuropa/bcl-navigation": "^1.10.11",
|
|
18
|
+
"@openeuropa/bcl-recent-activities": "^1.10.11",
|
|
19
|
+
"@openeuropa/bcl-user": "^1.10.11"
|
|
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": "82aecf2f60f8bd8f9afd447ea0d044396f085823"
|
|
36
36
|
}
|