@eeacms/volto-cca-policy 0.2.91 → 0.2.92
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/CHANGELOG.md +12 -2
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/components/theme/Views/NewsItemView.jsx +9 -0
- package/theme/globals/views.less +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,21 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
-
### [0.2.
|
|
7
|
+
### [0.2.92](https://github.com/eea/volto-cca-policy/compare/0.2.91...0.2.92) - 9 January 2025
|
|
8
|
+
|
|
9
|
+
#### :rocket: New Features
|
|
10
|
+
|
|
11
|
+
- feat(views): show weblink on news item view [kreafox - [`f7eca29`](https://github.com/eea/volto-cca-policy/commit/f7eca29965531fbc6743cfb4d9b2c58b87bf1560)]
|
|
12
|
+
|
|
13
|
+
#### :house: Internal changes
|
|
14
|
+
|
|
15
|
+
- style: fix weblink styling [kreafox - [`a481232`](https://github.com/eea/volto-cca-policy/commit/a481232d7be1e071844705227b887e379c0fd24c)]
|
|
8
16
|
|
|
9
17
|
#### :hammer_and_wrench: Others
|
|
10
18
|
|
|
11
|
-
-
|
|
19
|
+
- Retry tests [kreafox - [`674992e`](https://github.com/eea/volto-cca-policy/commit/674992efc22196c7890370d3e64634f32aa45ead)]
|
|
20
|
+
### [0.2.91](https://github.com/eea/volto-cca-policy/compare/0.2.90...0.2.91) - 9 January 2025
|
|
21
|
+
|
|
12
22
|
### [0.2.90](https://github.com/eea/volto-cca-policy/compare/0.2.89...0.2.90) - 8 January 2025
|
|
13
23
|
|
|
14
24
|
#### :rocket: New Features
|
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-cca-policy-develop)
|
|
15
15
|
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-cca-policy-develop)
|
|
16
16
|
|
|
17
|
-
Climate-ADAPT Frontend Policy
|
|
17
|
+
Climate-ADAPT Frontend Policy
|
|
18
18
|
|
|
19
19
|
[Volto](https://github.com/plone/volto) add-on
|
|
20
20
|
|
package/package.json
CHANGED
|
@@ -4,12 +4,21 @@ import { filterBlocks } from '@eeacms/volto-cca-policy/utils';
|
|
|
4
4
|
import { PortalMessage } from '@eeacms/volto-cca-policy/components';
|
|
5
5
|
import { HTMLField, SubjectTags } from '@eeacms/volto-cca-policy/helpers';
|
|
6
6
|
import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
|
7
|
+
import { UniversalLink } from '@plone/volto/components';
|
|
7
8
|
|
|
8
9
|
const DescriptionText = ({ content }) => {
|
|
9
10
|
return (
|
|
10
11
|
<>
|
|
11
12
|
<p className="documentDescription">{content.description}</p>
|
|
12
13
|
<HTMLField value={content.text} className="content-text" />
|
|
14
|
+
{content.remoteUrl && (
|
|
15
|
+
<div className="news-link">
|
|
16
|
+
<span>Read more on </span>
|
|
17
|
+
<UniversalLink href={content.remoteUrl}>
|
|
18
|
+
{content.remoteUrl}
|
|
19
|
+
</UniversalLink>
|
|
20
|
+
</div>
|
|
21
|
+
)}
|
|
13
22
|
</>
|
|
14
23
|
);
|
|
15
24
|
};
|