From 60fa30d57f3fb12eab56582a51bb53ef6ea53831 Mon Sep 17 00:00:00 2001 From: Pablo Tamarit Date: Fri, 18 Oct 2024 17:24:58 +0200 Subject: [PATCH] ui: verified icon display logic change --- .../communitiesItems/CommunityCompactItemComputer.js | 5 +++-- .../community/communitiesItems/CommunityCompactItemMobile.js | 5 +++-- .../community/communitiesItems/CommunityItemComputer.js | 3 ++- .../community/communitiesItems/CommunityItemMobile.js | 3 ++- .../semantic-ui/invenio_communities/details/header.html | 3 ++- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/invenio_communities/assets/semantic-ui/js/invenio_communities/community/communitiesItems/CommunityCompactItemComputer.js b/invenio_communities/assets/semantic-ui/js/invenio_communities/community/communitiesItems/CommunityCompactItemComputer.js index 7a9e57da2..1845170ff 100644 --- a/invenio_communities/assets/semantic-ui/js/invenio_communities/community/communitiesItems/CommunityCompactItemComputer.js +++ b/invenio_communities/assets/semantic-ui/js/invenio_communities/community/communitiesItems/CommunityCompactItemComputer.js @@ -46,8 +46,9 @@ export const CommunityCompactItemComputer = ({ rel="noreferrer" aria-label={`${metadata.title} (${i18next.t("opens in new tab")})`} > - {metadata.title}{" "} - {result.parent?.is_verified && ( + {metadata.title} + {/* Show the icon for subcommunities */} + {result.parent && (

- {metadata.title}{" "} - {result.parent?.is_verified && ( + {metadata.title} + {/* Show the icon for subcommunities */} + {result.parent && (

{ )}

{result.metadata.title} - {result.parent?.is_verified && ( + {/* Show the icon for subcommunities */} + {result.parent && (

{

{result.metadata.title} - {result.parent?.is_verified && ( + {/* Show the icon for subcommunities */} + {result.parent && (

{{ community.metadata.title }} - {% if community.parent and community.parent.is_verified %} + + {% if community.parent %}