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/configuration.xml b/kudos-webapps/src/main/webapp/WEB-INF/conf/configuration.xml index 1e1b88e19..ed6d2b3ca 100644 --- a/kudos-webapps/src/main/webapp/WEB-INF/conf/configuration.xml +++ b/kudos-webapps/src/main/webapp/WEB-INF/conf/configuration.xml @@ -2,6 +2,7 @@ + war:/conf/kudos/portal-configuration.xml war:/conf/kudos/bundle-configuration.xml war:/conf/kudos/organization-configuration.xml war:/conf/kudos/dynamic-container-configuration.xml @@ -10,5 +11,5 @@ war:/conf/kudos/activity-configuration.xml war:/conf/kudos/navigation-categories-configuration.xml war:/conf/kudos/upgrade-configuration.xml - + \ 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 new file mode 100644 index 000000000..bb82fdde4 --- /dev/null +++ b/kudos-webapps/src/main/webapp/WEB-INF/conf/kudos/portal-configuration.xml @@ -0,0 +1,39 @@ + + + + org.exoplatform.portal.config.UserPortalConfigService + + 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..2c7b27e0f --- /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 + + Everyone + + + kudos + KudosAdmin + + Kudos administration + Everyone + 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