forked from italia/design-comuni-plone-theme
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into new-folder-contents
- Loading branch information
Showing
29 changed files
with
409 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Plone\n" | ||
"POT-Creation-Date: 2024-05-15T15:55:46.048Z\n" | ||
"POT-Creation-Date: 2024-06-11T14:57:29.832Z\n" | ||
"Last-Translator: Plone i18n <[email protected]>\n" | ||
"Language-Team: Plone i18n <[email protected]>\n" | ||
"MIME-Version: 1.0\n" | ||
|
@@ -794,6 +794,11 @@ msgstr "" | |
msgid "altri_documenti_persona" | ||
msgstr "" | ||
|
||
#: components/ItaliaTheme/View/PersonaView/PersonaRuolo | ||
# defaultMessage: Altri incarichi | ||
msgid "altri_incarichi" | ||
msgstr "" | ||
|
||
#: config/Blocks/ListingOptions/cardWithImageTemplate | ||
# defaultMessage: Mostra l'immagine per tutti gli elementi | ||
msgid "always_show_image" | ||
|
@@ -2896,6 +2901,11 @@ msgstr "" | |
msgid "quartiere" | ||
msgstr "" | ||
|
||
#: components/ItaliaTheme/Blocks/Listing/Commons/RassegnaInfo | ||
# defaultMessage: Rassegna: | ||
msgid "rassegna_label" | ||
msgstr "" | ||
|
||
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeader | ||
# defaultMessage: Tempo di lettura | ||
msgid "reading_time" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/components/ItaliaTheme/Blocks/Listing/Commons/RassegnaInfo.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react'; | ||
import { defineMessages, useIntl } from 'react-intl'; | ||
import { UniversalLink } from '@plone/volto/components'; | ||
|
||
const RassegnaInfo = ({ eventoPadre }) => { | ||
const intl = useIntl(); | ||
return ( | ||
<div className="rassegna-info mb-3 mt-1"> | ||
<span className="rassegna-label"> | ||
{intl.formatMessage(messages.rassegna_label)} | ||
</span> | ||
<span className="rassegna-name"> | ||
<UniversalLink href={eventoPadre['@id']}> | ||
{eventoPadre.title} | ||
</UniversalLink> | ||
</span> | ||
</div> | ||
); | ||
}; | ||
|
||
const messages = defineMessages({ | ||
rassegna_label: { | ||
id: 'rassegna_label', | ||
defaultMessage: 'Rassegna:', | ||
}, | ||
}); | ||
|
||
export default RassegnaInfo; |
Oops, something went wrong.