@openeuropa/bcl-project 0.28.1 → 1.0.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.
Files changed (2) hide show
  1. package/package.json +9 -9
  2. package/project.html.twig +14 -29
package/package.json CHANGED
@@ -2,19 +2,19 @@
2
2
  "name": "@openeuropa/bcl-project",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "0.28.1",
5
+ "version": "1.0.0",
6
6
  "description": "OE - BCL Project",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
10
10
  "dependencies": {
11
- "@openeuropa/bcl-base-templates": "^0.28.1",
12
- "@openeuropa/bcl-carousel": "^0.28.1",
13
- "@openeuropa/bcl-description-list": "^0.28.1",
14
- "@openeuropa/bcl-featured-media": "^0.28.1",
15
- "@openeuropa/bcl-heading": "^0.28.1",
16
- "@openeuropa/bcl-inpage-navigation": "^0.28.1",
17
- "@openeuropa/bcl-project-status": "^0.28.1"
11
+ "@openeuropa/bcl-base-templates": "^1.0.0",
12
+ "@openeuropa/bcl-carousel": "^1.0.0",
13
+ "@openeuropa/bcl-description-list": "^1.0.0",
14
+ "@openeuropa/bcl-featured-media": "^1.0.0",
15
+ "@openeuropa/bcl-heading": "^1.0.0",
16
+ "@openeuropa/bcl-inpage-navigation": "^1.0.0",
17
+ "@openeuropa/bcl-project-status": "^1.0.0"
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",
@@ -30,5 +30,5 @@
30
30
  "design-system",
31
31
  "twig"
32
32
  ],
33
- "gitHead": "3b0d2f4a85c727f38ae4e3403110c98302d09117"
33
+ "gitHead": "16b986722345644e83a37dc8091c07eecbdf4c8c"
34
34
  }
package/project.html.twig CHANGED
@@ -5,26 +5,22 @@
5
5
  {% endblock %}
6
6
 
7
7
  {% block content %}
8
- {% if project_status_title is not empty %}
9
- {% set _project_title_attributes = create_attribute().addClass(['mb-4']) %}
10
- {% if project_status_id is not empty %}
11
- {% set _project_title_attributes = _project_title_attributes.setAttribute('id', project_status_id) %}
12
- {% endif %}
13
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
14
- title: project_status_title,
15
- title_tag: 'h2',
16
- attributes: _project_title_attributes,
17
- } only %}
18
- {% endif %}
19
8
  {% if project_status is not empty %}
9
+ {% if project_status_title is not empty %}
10
+ {% set _project_title_attributes = create_attribute().addClass(['mb-4']) %}
11
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
12
+ title: project_status_title,
13
+ title_tag: 'h2',
14
+ attributes: create_attribute().setAttribute('id', project_status_id),
15
+ } only %}
16
+ {% endif %}
20
17
  {% include '@oe-bcl/bcl-project-status/project-status.html.twig' with project_status %}
21
- {% endif %}
22
- {% if project_contributions is not empty %}
23
- {% include '@oe-bcl/bcl-project-status/project-contributions.html.twig' with project_contributions %}
24
- {% endif %}
25
-
26
- {% if status_lists is not empty %}
27
- {% include '@oe-bcl/bcl-project/project-lists.html.twig' with status_lists only %}
18
+ {% if project_contributions is not empty %}
19
+ {% include '@oe-bcl/bcl-project-status/project-contributions.html.twig' with project_contributions %}
20
+ {% endif %}
21
+ {% if status_lists is not empty %}
22
+ {% include '@oe-bcl/bcl-project/project-lists.html.twig' with status_lists only %}
23
+ {% endif %}
28
24
  {% endif %}
29
25
 
30
26
  {% if first_paragraphs is defined and first_paragraphs is not empty %}
@@ -59,17 +55,6 @@
59
55
  {% endfor %}
60
56
  {% endif %}
61
57
 
62
- {% if gallery.main_title is not empty %}
63
- {% set _gallery_title_attributes = create_attribute().addClass(['my-4']) %}
64
- {% if gallery.main_title_id is not empty %}
65
- {% set _gallery_title_attributes = _gallery_title_attributes.setAttribute('id', gallery.main_title_id) %}
66
- {% endif %}
67
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
68
- title: gallery.main_title,
69
- title_tag: 'h2',
70
- attributes: _gallery_title_attributes,
71
- } only %}
72
- {% endif %}
73
58
  {% if gallery is not empty %}
74
59
  <div class="mt-3 mb-4-5">
75
60
  {% include '@oe-bcl/bcl-gallery/gallery.html.twig' with gallery only %}