From c46ef89d1c7f7ea1eed1f1f57f77f7e05671713a Mon Sep 17 00:00:00 2001 From: Ayoub Zayati Date: Fri, 20 Oct 2023 17:01:29 +0200 Subject: [PATCH] feat: Configure kudos navigation and pages for administration site - EXO-66546_66871 - Meeds-io/MIPs#88 (#404) --- .../portal/administration_en.properties | 19 ++++++++ .../conf/kudos/portal-configuration.xml | 33 ++++++++++++++ .../portal/administration/navigation.xml | 45 +++++++++++++++++++ .../portal/portal/administration/pages.xml | 42 +++++++++++++++++ translations.properties | 4 +- 5 files changed, 142 insertions(+), 1 deletion(-) create mode 100644 kudos-webapps/src/main/resources/locale/navigation/portal/administration_en.properties create mode 100644 kudos-webapps/src/main/webapp/WEB-INF/conf/kudos/portal/portal/administration/navigation.xml create mode 100644 kudos-webapps/src/main/webapp/WEB-INF/conf/kudos/portal/portal/administration/pages.xml diff --git a/kudos-webapps/src/main/resources/locale/navigation/portal/administration_en.properties b/kudos-webapps/src/main/resources/locale/navigation/portal/administration_en.properties new file mode 100644 index 000000000..5129cc9fc --- /dev/null +++ b/kudos-webapps/src/main/resources/locale/navigation/portal/administration_en.properties @@ -0,0 +1,19 @@ +# +# This file is part of the Meeds project (https://meeds.io/). +# Copyright (C) 2023 Meeds Association +# contact@meeds.io +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +portal.administration.home=Platform settings +portal.administration.recognition=Recognition +portal.administration.kudos=Kudos \ No newline at end of file diff --git a/kudos-webapps/src/main/webapp/WEB-INF/conf/kudos/portal-configuration.xml b/kudos-webapps/src/main/webapp/WEB-INF/conf/kudos/portal-configuration.xml index a9bb992c9..ea83878f4 100644 --- a/kudos-webapps/src/main/webapp/WEB-INF/conf/kudos/portal-configuration.xml +++ b/kudos-webapps/src/main/webapp/WEB-INF/conf/kudos/portal-configuration.xml @@ -39,5 +39,38 @@ + + new.portal.config.user.listener + initListener + org.exoplatform.portal.config.NewPortalConfigListener + this listener init the portal configuration + 770 + + + portal.configuration + + + + + administration + + + + + portal + + + war:/conf/kudos/portal + + + ${exo.kudos.portalConfig.administration.override:true} + + + ${exo.kudos.portalConfig.administration.importmode:insert} + + + + + \ No newline at end of file diff --git a/kudos-webapps/src/main/webapp/WEB-INF/conf/kudos/portal/portal/administration/navigation.xml b/kudos-webapps/src/main/webapp/WEB-INF/conf/kudos/portal/portal/administration/navigation.xml new file mode 100644 index 000000000..b2ecfe932 --- /dev/null +++ b/kudos-webapps/src/main/webapp/WEB-INF/conf/kudos/portal/portal/administration/navigation.xml @@ -0,0 +1,45 @@ + + + + 3 + + + + home + + fas fa-cog + + recognition + + fas fa-trophy + + kudos + + fas fa-award + portal::administration::kudosAdministration + + + + + diff --git a/kudos-webapps/src/main/webapp/WEB-INF/conf/kudos/portal/portal/administration/pages.xml b/kudos-webapps/src/main/webapp/WEB-INF/conf/kudos/portal/portal/administration/pages.xml new file mode 100644 index 000000000..32966e17b --- /dev/null +++ b/kudos-webapps/src/main/webapp/WEB-INF/conf/kudos/portal/portal/administration/pages.xml @@ -0,0 +1,42 @@ + + + + + kudosAdministration + Kudo administration + *:/platform/rewarding + manager:/platform/rewarding + + *:/platform/rewarding + + + kudos + KudosAdmin + + Kudos administration + *:/platform/rewarding + false + + + + \ No newline at end of file diff --git a/translations.properties b/translations.properties index 76ae84308..3f6da5773 100644 --- a/translations.properties +++ b/translations.properties @@ -29,4 +29,6 @@ Analytics.properties=kudos-webapps/src/main/resources/locale/portlet/Analytics_e NotificationAdministration.properties=kudos-webapps/src/main/resources/locale/portlet/NotificationAdministration_en.properties # Gamification -Gamification.properties=kudos-webapps/src/main/resources/locale/addon/Gamification_en.properties \ No newline at end of file +Gamification.properties=kudos-webapps/src/main/resources/locale/addon/Gamification_en.properties + +administration.properties=kudos-webapps/src/main/resources/locale/navigation/portal/administration_en.properties