@eeacms/volto-cca-policy 0.2.99 → 0.3.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/CHANGELOG.md +31 -8
- package/locales/bg/LC_MESSAGES/volto.po +5 -95
- package/locales/cs/LC_MESSAGES/volto.po +5 -95
- package/locales/de/LC_MESSAGES/volto.po +5 -95
- package/locales/en/LC_MESSAGES/volto.po +5 -95
- package/locales/es/LC_MESSAGES/volto.po +5 -95
- package/locales/et/LC_MESSAGES/volto.po +5 -95
- package/locales/fi/LC_MESSAGES/volto.po +5 -95
- package/locales/fr/LC_MESSAGES/volto.po +5 -95
- package/locales/ga/LC_MESSAGES/volto.po +5 -95
- package/locales/hr/LC_MESSAGES/volto.po +5 -95
- package/locales/hu/LC_MESSAGES/volto.po +5 -95
- package/locales/it/LC_MESSAGES/volto.po +5 -95
- package/locales/lt/LC_MESSAGES/volto.po +5 -95
- package/locales/nl/LC_MESSAGES/volto.po +5 -95
- package/locales/pl/LC_MESSAGES/volto.po +5 -95
- package/locales/pt/LC_MESSAGES/volto.po +5 -95
- package/locales/ro/LC_MESSAGES/volto.po +5 -95
- package/locales/sl/LC_MESSAGES/volto.po +5 -95
- package/locales/volto.pot +6 -96
- package/package.json +1 -1
- package/src/components/manage/Blocks/Listing/EventCardsListingView.jsx +136 -161
- package/src/components/manage/Blocks/Listing/styles.less +46 -16
- package/src/customizations/volto/components/manage/UniversalLink/UniversalLink.jsx +19 -10
- package/src/customizations/volto/components/manage/UniversalLink/UniversalLink.test.jsx +3 -3
- package/src/helpers/index.js +3 -0
- package/src/search/{config.js → cca/config.js} +15 -2
- package/src/search/{facets.js → cca/facets.js} +1 -1
- package/src/search/common.js +7 -3
- package/src/search/index.js +8 -7
- package/theme/assets/images/eea-logo.svg +1 -0
- package/theme/globals/site.variables +1 -0
- /package/src/search/{views.js → cca/views.js} +0 -0
package/locales/volto.pot
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
msgid ""
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Project-Id-Version: Plone\n"
|
|
4
|
-
"POT-Creation-Date: 2025-
|
|
4
|
+
"POT-Creation-Date: 2025-02-03T13:57:05.869Z\n"
|
|
5
5
|
"Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
6
6
|
"Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
7
7
|
"Content-Type: text/plain; charset=utf-8\n"
|
|
@@ -60,16 +60,6 @@ msgstr ""
|
|
|
60
60
|
msgid "Agenda and supporting documents"
|
|
61
61
|
msgstr ""
|
|
62
62
|
|
|
63
|
-
#. Default: "Apr"
|
|
64
|
-
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
65
|
-
msgid "Apr"
|
|
66
|
-
msgstr ""
|
|
67
|
-
|
|
68
|
-
#. Default: "Aug"
|
|
69
|
-
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
70
|
-
msgid "Aug"
|
|
71
|
-
msgstr ""
|
|
72
|
-
|
|
73
63
|
#. Default: "Background information"
|
|
74
64
|
#: components/theme/Views/C3SIndicatorView
|
|
75
65
|
msgid "Background information"
|
|
@@ -198,11 +188,6 @@ msgstr ""
|
|
|
198
188
|
msgid "Date of release:"
|
|
199
189
|
msgstr ""
|
|
200
190
|
|
|
201
|
-
#. Default: "Dec"
|
|
202
|
-
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
203
|
-
msgid "Dec"
|
|
204
|
-
msgstr ""
|
|
205
|
-
|
|
206
191
|
#. Default: "Description"
|
|
207
192
|
#: helpers/Utils
|
|
208
193
|
msgid "Description"
|
|
@@ -263,21 +248,11 @@ msgstr ""
|
|
|
263
248
|
msgid "Explore more on Climate-ADAPT"
|
|
264
249
|
msgstr ""
|
|
265
250
|
|
|
266
|
-
#. Default: "Feb"
|
|
267
|
-
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
268
|
-
msgid "Feb"
|
|
269
|
-
msgstr ""
|
|
270
|
-
|
|
271
251
|
#. Default: "For more search options"
|
|
272
252
|
#: index
|
|
273
253
|
msgid "For more search options"
|
|
274
254
|
msgstr ""
|
|
275
255
|
|
|
276
|
-
#. Default: "Fr"
|
|
277
|
-
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
278
|
-
msgid "Fr"
|
|
279
|
-
msgstr ""
|
|
280
|
-
|
|
281
256
|
#. Default: "Fullscreen"
|
|
282
257
|
#: components/theme/Views/C3SIndicatorView
|
|
283
258
|
msgid "Fullscreen"
|
|
@@ -364,21 +339,6 @@ msgstr ""
|
|
|
364
339
|
msgid "Info"
|
|
365
340
|
msgstr ""
|
|
366
341
|
|
|
367
|
-
#. Default: "Jan"
|
|
368
|
-
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
369
|
-
msgid "Jan"
|
|
370
|
-
msgstr ""
|
|
371
|
-
|
|
372
|
-
#. Default: "Jul"
|
|
373
|
-
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
374
|
-
msgid "Jul"
|
|
375
|
-
msgstr ""
|
|
376
|
-
|
|
377
|
-
#. Default: "Jun"
|
|
378
|
-
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
379
|
-
msgid "Jun"
|
|
380
|
-
msgstr ""
|
|
381
|
-
|
|
382
342
|
#. Default: "Key Type Measure"
|
|
383
343
|
#: components/manage/Blocks/FilterAceContent/FilterAceContentView
|
|
384
344
|
msgid "Key Type Measure"
|
|
@@ -441,21 +401,6 @@ msgstr ""
|
|
|
441
401
|
msgid "Macro-Transnational region:"
|
|
442
402
|
msgstr ""
|
|
443
403
|
|
|
444
|
-
#. Default: "Mar"
|
|
445
|
-
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
446
|
-
msgid "Mar"
|
|
447
|
-
msgstr ""
|
|
448
|
-
|
|
449
|
-
#. Default: "May"
|
|
450
|
-
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
451
|
-
msgid "May"
|
|
452
|
-
msgstr ""
|
|
453
|
-
|
|
454
|
-
#. Default: "Mo"
|
|
455
|
-
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
456
|
-
msgid "Mo"
|
|
457
|
-
msgstr ""
|
|
458
|
-
|
|
459
404
|
#. Default: "National HHAP"
|
|
460
405
|
#: components/manage/Blocks/CountryMapHeatIndex/Filter
|
|
461
406
|
msgid "National HHAP"
|
|
@@ -476,11 +421,6 @@ msgstr ""
|
|
|
476
421
|
msgid "No results"
|
|
477
422
|
msgstr ""
|
|
478
423
|
|
|
479
|
-
#. Default: "Nov"
|
|
480
|
-
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
481
|
-
msgid "Nov"
|
|
482
|
-
msgstr ""
|
|
483
|
-
|
|
484
424
|
#. Default: "Objectives of the adaptation measure"
|
|
485
425
|
#: components/theme/Views/CaseStudyView
|
|
486
426
|
msgid "Objectives of the adaptation measure"
|
|
@@ -496,16 +436,16 @@ msgstr ""
|
|
|
496
436
|
msgid "Observatory contributions"
|
|
497
437
|
msgstr ""
|
|
498
438
|
|
|
499
|
-
#. Default: "Oct"
|
|
500
|
-
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
501
|
-
msgid "Oct"
|
|
502
|
-
msgstr ""
|
|
503
|
-
|
|
504
439
|
#. Default: "Organisation Documents"
|
|
505
440
|
#: helpers/Utils
|
|
506
441
|
msgid "Organisation Documents"
|
|
507
442
|
msgstr ""
|
|
508
443
|
|
|
444
|
+
#. Default: "Organised by EEA"
|
|
445
|
+
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
446
|
+
msgid "Organised by EEA"
|
|
447
|
+
msgstr ""
|
|
448
|
+
|
|
509
449
|
#. Default: "Other regions"
|
|
510
450
|
#: components/manage/Blocks/TransRegionSelect/TransRegionSelectView
|
|
511
451
|
msgid "Other regions"
|
|
@@ -593,11 +533,6 @@ msgstr ""
|
|
|
593
533
|
msgid "Replace existing file"
|
|
594
534
|
msgstr ""
|
|
595
535
|
|
|
596
|
-
#. Default: "Sa"
|
|
597
|
-
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
598
|
-
msgid "Sa"
|
|
599
|
-
msgstr ""
|
|
600
|
-
|
|
601
536
|
#. Default: "Search the Climate-ADAPT database"
|
|
602
537
|
#: index
|
|
603
538
|
msgid "Search the Climate-ADAPT database"
|
|
@@ -644,11 +579,6 @@ msgstr ""
|
|
|
644
579
|
msgid "Select"
|
|
645
580
|
msgstr ""
|
|
646
581
|
|
|
647
|
-
#. Default: "Sep"
|
|
648
|
-
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
649
|
-
msgid "Sep"
|
|
650
|
-
msgstr ""
|
|
651
|
-
|
|
652
582
|
#. Default: "Share your information"
|
|
653
583
|
#: components/manage/Blocks/SearchAceContent/SearchAceContentView
|
|
654
584
|
#: components/theme/ShareInfoButton/ShareInfoButton
|
|
@@ -678,11 +608,6 @@ msgstr ""
|
|
|
678
608
|
msgid "Stakeholder participation"
|
|
679
609
|
msgstr ""
|
|
680
610
|
|
|
681
|
-
#. Default: "Su"
|
|
682
|
-
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
683
|
-
msgid "Su"
|
|
684
|
-
msgstr ""
|
|
685
|
-
|
|
686
611
|
#. Default: "Sub Nationals:"
|
|
687
612
|
#: helpers/ContentMetadata
|
|
688
613
|
msgid "Sub Nationals:"
|
|
@@ -699,11 +624,6 @@ msgstr ""
|
|
|
699
624
|
msgid "Success and limiting factors"
|
|
700
625
|
msgstr ""
|
|
701
626
|
|
|
702
|
-
#. Default: "Th"
|
|
703
|
-
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
704
|
-
msgid "Th"
|
|
705
|
-
msgstr ""
|
|
706
|
-
|
|
707
627
|
#. Default: "The Adaptation Support Tool - Getting started"
|
|
708
628
|
#: components/theme/ASTNavigation/ASTAccordion
|
|
709
629
|
msgid "The Adaptation Support Tool - Getting started"
|
|
@@ -724,11 +644,6 @@ msgstr ""
|
|
|
724
644
|
msgid "The date refers to the moment in which the item has been prepared or updated by contributing experts to be submitted for the publication in Climate ADAPT"
|
|
725
645
|
msgstr ""
|
|
726
646
|
|
|
727
|
-
#. Default: "Tu"
|
|
728
|
-
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
729
|
-
msgid "Tu"
|
|
730
|
-
msgstr ""
|
|
731
|
-
|
|
732
647
|
#. Default: "Updating notes"
|
|
733
648
|
#: components/theme/Views/CaseStudyView
|
|
734
649
|
msgid "Updating notes"
|
|
@@ -744,11 +659,6 @@ msgstr ""
|
|
|
744
659
|
msgid "Visit external website"
|
|
745
660
|
msgstr ""
|
|
746
661
|
|
|
747
|
-
#. Default: "We"
|
|
748
|
-
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
749
|
-
msgid "We"
|
|
750
|
-
msgstr ""
|
|
751
|
-
|
|
752
662
|
#. Default: "Web"
|
|
753
663
|
#: helpers/Utils
|
|
754
664
|
msgid "Web"
|
package/package.json
CHANGED
|
@@ -1,186 +1,161 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import { compose } from 'redux';
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import { FormattedMessage } from 'react-intl';
|
|
5
|
+
import { connect, useSelector } from 'react-redux';
|
|
6
|
+
import { Card, Grid, Icon, Label, Image } from 'semantic-ui-react';
|
|
7
7
|
import { ConditionalLink, UniversalLink } from '@plone/volto/components';
|
|
8
8
|
import { When } from '@plone/volto/components/theme/View/EventDatesInfo';
|
|
9
|
+
import eeaLogo from '@eeacms/volto-cca-policy/../theme/assets/images/eea-logo.svg';
|
|
10
|
+
import { capitalizeFirstLetter } from '@eeacms/volto-cca-policy/helpers';
|
|
11
|
+
import config from '@plone/volto/registry';
|
|
9
12
|
import './styles.less';
|
|
10
13
|
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const messages = defineMessages({
|
|
16
|
-
jan: { id: 'Jan', defaultMessage: 'Jan' },
|
|
17
|
-
feb: { id: 'Feb', defaultMessage: 'Feb' },
|
|
18
|
-
mar: { id: 'Mar', defaultMessage: 'Mar' },
|
|
19
|
-
apr: { id: 'Apr', defaultMessage: 'Apr' },
|
|
20
|
-
may: { id: 'May', defaultMessage: 'May' },
|
|
21
|
-
jun: { id: 'Jun', defaultMessage: 'Jun' },
|
|
22
|
-
jul: { id: 'Jul', defaultMessage: 'Jul' },
|
|
23
|
-
aug: { id: 'Aug', defaultMessage: 'Aug' },
|
|
24
|
-
sep: { id: 'Sep', defaultMessage: 'Sep' },
|
|
25
|
-
oct: { id: 'Oct', defaultMessage: 'Oct' },
|
|
26
|
-
nov: { id: 'Nov', defaultMessage: 'Nov' },
|
|
27
|
-
dec: { id: 'Dec', defaultMessage: 'Dec' },
|
|
28
|
-
|
|
29
|
-
mo: { id: 'Mo', defaultMessage: 'Mo' },
|
|
30
|
-
tu: { id: 'Tu', defaultMessage: 'Tu' },
|
|
31
|
-
we: { id: 'We', defaultMessage: 'We' },
|
|
32
|
-
th: { id: 'Th', defaultMessage: 'Th' },
|
|
33
|
-
fr: { id: 'Fr', defaultMessage: 'Fr' },
|
|
34
|
-
sa: { id: 'Sa', defaultMessage: 'Sa' },
|
|
35
|
-
su: { id: 'Su', defaultMessage: 'Su' },
|
|
36
|
-
});
|
|
14
|
+
const goToContact = (contactInfo) =>
|
|
15
|
+
contactInfo.includes('@') ? `mailto:${contactInfo}` : contactInfo;
|
|
37
16
|
|
|
38
|
-
const
|
|
39
|
-
const start_date = new Date(start);
|
|
17
|
+
const getEventUrl = (item) => item?.event_url || item['@id'];
|
|
40
18
|
|
|
41
|
-
|
|
42
|
-
const
|
|
19
|
+
const StartDate = ({ start }) => {
|
|
20
|
+
const startDate = new Date(start);
|
|
21
|
+
const day = startDate.getDate();
|
|
22
|
+
const currentLang = useSelector((state) => state.intl.locale);
|
|
43
23
|
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
intl.formatMessage(messages.feb),
|
|
48
|
-
intl.formatMessage(messages.mar),
|
|
49
|
-
intl.formatMessage(messages.apr),
|
|
50
|
-
intl.formatMessage(messages.may),
|
|
51
|
-
intl.formatMessage(messages.jun),
|
|
52
|
-
intl.formatMessage(messages.jul),
|
|
53
|
-
intl.formatMessage(messages.aug),
|
|
54
|
-
intl.formatMessage(messages.sep),
|
|
55
|
-
intl.formatMessage(messages.oct),
|
|
56
|
-
intl.formatMessage(messages.nov),
|
|
57
|
-
intl.formatMessage(messages.dec),
|
|
58
|
-
];
|
|
59
|
-
|
|
60
|
-
const dayNames = {
|
|
61
|
-
Mo: intl.formatMessage(messages.mo),
|
|
62
|
-
Tu: intl.formatMessage(messages.tu),
|
|
63
|
-
We: intl.formatMessage(messages.we),
|
|
64
|
-
Th: intl.formatMessage(messages.th),
|
|
65
|
-
Fr: intl.formatMessage(messages.fr),
|
|
66
|
-
Sa: intl.formatMessage(messages.sa),
|
|
67
|
-
Su: intl.formatMessage(messages.su),
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
const monthName = monthNames[monthIndex];
|
|
24
|
+
const monthName = capitalizeFirstLetter(
|
|
25
|
+
startDate.toLocaleDateString(currentLang, { month: 'short' }),
|
|
26
|
+
);
|
|
71
27
|
|
|
72
|
-
const dayOfWeek =
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
];
|
|
28
|
+
const dayOfWeek = capitalizeFirstLetter(
|
|
29
|
+
startDate.toLocaleDateString(currentLang, { weekday: 'short' }),
|
|
30
|
+
);
|
|
76
31
|
|
|
77
32
|
return (
|
|
78
33
|
<div className="start-date">
|
|
79
34
|
<p className="day">{dayOfWeek}</p>
|
|
80
|
-
<p className="date">
|
|
81
|
-
{day} {monthName}
|
|
82
|
-
</p>
|
|
35
|
+
<p className="date">{`${day} ${monthName}`}</p>
|
|
83
36
|
</div>
|
|
84
37
|
);
|
|
85
38
|
};
|
|
86
39
|
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
40
|
+
const EventCard = ({ item, isEditMode }) => (
|
|
41
|
+
<div className="u-item listing-item simple-listing-item" key={item.UID}>
|
|
42
|
+
<div className="wrapper">
|
|
43
|
+
<Card fluid>
|
|
44
|
+
<Card.Content>
|
|
45
|
+
<Grid stackable columns={12}>
|
|
46
|
+
<Grid.Column width={2}>
|
|
47
|
+
{item?.start && <StartDate start={item.start} />}
|
|
48
|
+
</Grid.Column>
|
|
49
|
+
<Grid.Column width={10}>
|
|
50
|
+
<div className="event-details">
|
|
51
|
+
<h3 className="listing-header">
|
|
52
|
+
<UniversalLink href={getEventUrl(item)}>
|
|
53
|
+
{item.title}
|
|
54
|
+
</UniversalLink>
|
|
55
|
+
</h3>
|
|
56
|
+
<EventDetails item={item} isEditMode={isEditMode} />
|
|
57
|
+
</div>
|
|
58
|
+
</Grid.Column>
|
|
59
|
+
</Grid>
|
|
60
|
+
</Card.Content>
|
|
61
|
+
</Card>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
const EventDetails = ({ item, isEditMode }) => (
|
|
67
|
+
<>
|
|
68
|
+
{item?.start && (
|
|
69
|
+
<div className="listing-body-dates">
|
|
70
|
+
<span className="event-date">
|
|
71
|
+
<Icon className="ri-calendar-line" />
|
|
72
|
+
<When
|
|
73
|
+
whole_day
|
|
74
|
+
start={item.start}
|
|
75
|
+
end={item.end}
|
|
76
|
+
open_end={item.open_end}
|
|
77
|
+
/>
|
|
78
|
+
</span>
|
|
79
|
+
</div>
|
|
80
|
+
)}
|
|
81
|
+
{item?.location && (
|
|
82
|
+
<div className="listing-body-dates">
|
|
83
|
+
<span className="event-date">
|
|
84
|
+
<Icon className="map marker alternate" />
|
|
85
|
+
{item.location}
|
|
86
|
+
</span>
|
|
87
|
+
</div>
|
|
88
|
+
)}
|
|
89
|
+
{item?.description && (
|
|
90
|
+
<p className="listing-description">{item.description}</p>
|
|
91
|
+
)}
|
|
92
|
+
<BottomInfo item={item} isEditMode={isEditMode} />
|
|
93
|
+
</>
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
const BottomInfo = ({ item, isEditMode }) => {
|
|
97
|
+
const { '@type': itemType, event_url, subjects, contact_email } = item || {};
|
|
98
|
+
const isCcaEventType = itemType === 'cca-event';
|
|
99
|
+
const isExternal = event_url && !event_url.includes(config.settings.apiPath);
|
|
92
100
|
|
|
93
101
|
return (
|
|
94
|
-
|
|
95
|
-
{
|
|
96
|
-
<div className="
|
|
97
|
-
<
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
end={item.end}
|
|
118
|
-
whole_day={true}
|
|
119
|
-
open_end={item.open_end}
|
|
120
|
-
/>
|
|
121
|
-
</span>
|
|
122
|
-
</div>
|
|
123
|
-
)}
|
|
124
|
-
{!!item.location && (
|
|
125
|
-
<div className="listing-body-dates">
|
|
126
|
-
<span className="event-date">
|
|
127
|
-
<Icon className="map marker alternate" />
|
|
128
|
-
{item.location}
|
|
129
|
-
</span>
|
|
130
|
-
</div>
|
|
131
|
-
)}
|
|
132
|
-
{item.description && (
|
|
133
|
-
<p className="listing-description">
|
|
134
|
-
{item.description}
|
|
135
|
-
</p>
|
|
136
|
-
)}
|
|
137
|
-
<div className="bottom-info">
|
|
138
|
-
{!!item.subjects && item.subjects.length > 0 && (
|
|
139
|
-
<>
|
|
140
|
-
<div className="subjects">
|
|
141
|
-
{item.subjects.map((tag) => (
|
|
142
|
-
<Label key={tag} size="small">
|
|
143
|
-
{tag}
|
|
144
|
-
</Label>
|
|
145
|
-
))}
|
|
146
|
-
</div>
|
|
147
|
-
|
|
148
|
-
<Separator />
|
|
149
|
-
</>
|
|
150
|
-
)}
|
|
151
|
-
<div className="source">
|
|
152
|
-
<ConditionalLink item={item} condition={!isEditMode}>
|
|
153
|
-
<FormattedMessage
|
|
154
|
-
id="Climate-ADAPT page for this event"
|
|
155
|
-
defaultMessage="Climate-ADAPT page for this event"
|
|
156
|
-
/>
|
|
157
|
-
</ConditionalLink>
|
|
158
|
-
</div>
|
|
159
|
-
{!!item.contact_email && (
|
|
160
|
-
<>
|
|
161
|
-
<Separator />
|
|
162
|
-
<div className="email-info">
|
|
163
|
-
<Icon className="mail" />
|
|
164
|
-
<a
|
|
165
|
-
className="contact_email"
|
|
166
|
-
title=""
|
|
167
|
-
href={goToContact(item.contact_email)}
|
|
168
|
-
target="_blank"
|
|
169
|
-
rel="noreferrer"
|
|
170
|
-
>
|
|
171
|
-
{item.contact_email}
|
|
172
|
-
</a>
|
|
173
|
-
</div>
|
|
174
|
-
</>
|
|
175
|
-
)}
|
|
176
|
-
</div>
|
|
177
|
-
</div>
|
|
178
|
-
</Grid.Column>
|
|
179
|
-
</Grid>
|
|
180
|
-
</Card.Content>
|
|
181
|
-
</Card>
|
|
102
|
+
<>
|
|
103
|
+
{(!isExternal || isCcaEventType) && (
|
|
104
|
+
<div className="event-organisation">
|
|
105
|
+
<FormattedMessage
|
|
106
|
+
id="Organised by EEA"
|
|
107
|
+
defaultMessage="Organised by EEA"
|
|
108
|
+
/>
|
|
109
|
+
<Image
|
|
110
|
+
className="eea-logo"
|
|
111
|
+
src={eeaLogo}
|
|
112
|
+
alt="European Environment Agency"
|
|
113
|
+
title="European Environment Agency"
|
|
114
|
+
/>
|
|
115
|
+
</div>
|
|
116
|
+
)}
|
|
117
|
+
<div className="bottom-info">
|
|
118
|
+
{subjects && subjects.length > 0 && (
|
|
119
|
+
<div className="subjects">
|
|
120
|
+
{subjects.map((tag) => (
|
|
121
|
+
<Label key={tag} size="small">
|
|
122
|
+
{tag}
|
|
123
|
+
</Label>
|
|
124
|
+
))}
|
|
182
125
|
</div>
|
|
126
|
+
)}
|
|
127
|
+
|
|
128
|
+
<div className="source">
|
|
129
|
+
<ConditionalLink item={item} condition={!isEditMode}>
|
|
130
|
+
<FormattedMessage
|
|
131
|
+
id="Climate-ADAPT page for this event"
|
|
132
|
+
defaultMessage="Climate-ADAPT page for this event"
|
|
133
|
+
/>
|
|
134
|
+
</ConditionalLink>
|
|
183
135
|
</div>
|
|
136
|
+
{contact_email && (
|
|
137
|
+
<div className="email-info">
|
|
138
|
+
<Icon name="mail" />
|
|
139
|
+
<a
|
|
140
|
+
className="contact_email"
|
|
141
|
+
href={goToContact(contact_email)}
|
|
142
|
+
target="_blank"
|
|
143
|
+
rel="noreferrer"
|
|
144
|
+
>
|
|
145
|
+
{contact_email}
|
|
146
|
+
</a>
|
|
147
|
+
</div>
|
|
148
|
+
)}
|
|
149
|
+
</div>
|
|
150
|
+
</>
|
|
151
|
+
);
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
const EventCardsListingView = ({ items, isEditMode }) => {
|
|
155
|
+
return (
|
|
156
|
+
<div className="ui fluid eventCards">
|
|
157
|
+
{items.map((item) => (
|
|
158
|
+
<EventCard key={item.UID} item={item} isEditMode={isEditMode} />
|
|
184
159
|
))}
|
|
185
160
|
</div>
|
|
186
161
|
);
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
@type: 'extra';
|
|
2
|
+
@element: 'custom';
|
|
3
|
+
|
|
4
|
+
@import (multiple, reference, optional) '../../theme.config';
|
|
5
|
+
|
|
1
6
|
// Organisation Cards Listing
|
|
2
7
|
div.organisationCards {
|
|
3
8
|
div.card.u-card {
|
|
@@ -46,23 +51,31 @@ div.indicatorCards {
|
|
|
46
51
|
}
|
|
47
52
|
|
|
48
53
|
// Event Cards Listing
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
border-bottom: 1px solid #ddd
|
|
54
|
+
.eventCards {
|
|
55
|
+
.u-item.listing-item.simple-listing-item {
|
|
56
|
+
border-bottom: 1px solid #ddd;
|
|
52
57
|
}
|
|
53
58
|
|
|
54
|
-
a {
|
|
55
|
-
color:
|
|
59
|
+
.u-item.listing-item a {
|
|
60
|
+
color: @linkColor !important;
|
|
56
61
|
}
|
|
57
62
|
|
|
58
|
-
|
|
59
|
-
max-width: 80px;
|
|
60
|
-
|
|
63
|
+
.start-date {
|
|
61
64
|
.day {
|
|
62
|
-
|
|
63
|
-
color:
|
|
65
|
+
position: relative;
|
|
66
|
+
color: @ccaOrangeColor;
|
|
64
67
|
font-size: 2.5em;
|
|
65
68
|
font-weight: 900;
|
|
69
|
+
|
|
70
|
+
&:after {
|
|
71
|
+
position: absolute;
|
|
72
|
+
bottom: -2px;
|
|
73
|
+
left: 0;
|
|
74
|
+
width: 80px;
|
|
75
|
+
height: 3px;
|
|
76
|
+
background-color: @ccaOrangeColor;
|
|
77
|
+
content: '';
|
|
78
|
+
}
|
|
66
79
|
}
|
|
67
80
|
|
|
68
81
|
.date {
|
|
@@ -71,15 +84,14 @@ div.eventCards {
|
|
|
71
84
|
}
|
|
72
85
|
}
|
|
73
86
|
|
|
74
|
-
|
|
87
|
+
.bottom-info {
|
|
75
88
|
display: flex;
|
|
76
89
|
flex-wrap: wrap;
|
|
77
90
|
align-items: center;
|
|
78
91
|
justify-content: flex-start;
|
|
92
|
+
gap: 1em;
|
|
79
93
|
|
|
80
94
|
.sep {
|
|
81
|
-
position: relative;
|
|
82
|
-
top: -2px;
|
|
83
95
|
color: #ddd;
|
|
84
96
|
}
|
|
85
97
|
|
|
@@ -89,15 +101,33 @@ div.eventCards {
|
|
|
89
101
|
justify-content: flex-start;
|
|
90
102
|
}
|
|
91
103
|
|
|
92
|
-
|
|
104
|
+
.subjects {
|
|
93
105
|
.label {
|
|
94
|
-
|
|
95
|
-
margin-
|
|
106
|
+
padding: 5px 7px;
|
|
107
|
+
margin-right: 0.5em;
|
|
96
108
|
background: #eee;
|
|
97
109
|
color: #3d5265;
|
|
98
110
|
}
|
|
99
111
|
}
|
|
100
112
|
}
|
|
113
|
+
|
|
114
|
+
.u-item.listing-item {
|
|
115
|
+
.ui.image.eea-logo {
|
|
116
|
+
width: 100px;
|
|
117
|
+
max-width: none;
|
|
118
|
+
height: 45px;
|
|
119
|
+
object-fit: initial;
|
|
120
|
+
object-position: unset;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.event-organisation {
|
|
124
|
+
display: flex;
|
|
125
|
+
align-items: center;
|
|
126
|
+
margin: 1em 0;
|
|
127
|
+
gap: 0.5em;
|
|
128
|
+
// flex-direction: column;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
101
131
|
}
|
|
102
132
|
|
|
103
133
|
.dropdown.listing {
|