diff --git a/translations.properties b/translations.properties index fad72a4bc..12ae397a7 100644 --- a/translations.properties +++ b/translations.properties @@ -27,3 +27,4 @@ webui_en.properties=wallet-webapps/src/main/resources/locale/navigation/portal/g RewardingGroupNavigation.properties=wallet-webapps/src/main/resources/locale/navigation/group/platform/rewarding_en.properties NotificationAdministration.properties=wallet-webapps/src/main/resources/locale/portlet/NotificationAdministration_en.properties Analytics.properties=wallet-webapps/src/main/resources/locale/portlet/Analytics_en.properties +navigation/administration.properties=wallet-webapps/src/main/resources/locale/navigation/portal/administration_en.properties \ No newline at end of file diff --git a/wallet-webapps/src/main/resources/locale/navigation/portal/administration_en.properties b/wallet-webapps/src/main/resources/locale/navigation/portal/administration_en.properties new file mode 100644 index 000000000..a5e123f9e --- /dev/null +++ b/wallet-webapps/src/main/resources/locale/navigation/portal/administration_en.properties @@ -0,0 +1,20 @@ +# +# 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.wallet=Wallet +portal.administration.reward=Reward diff --git a/wallet-webapps/src/main/webapp/WEB-INF/conf/wallet/portal/portal/administration/navigation.xml b/wallet-webapps/src/main/webapp/WEB-INF/conf/wallet/portal/portal/administration/navigation.xml new file mode 100644 index 000000000..93df4635e --- /dev/null +++ b/wallet-webapps/src/main/webapp/WEB-INF/conf/wallet/portal/portal/administration/navigation.xml @@ -0,0 +1,51 @@ + + + + 3 + + + + home + + fas fa-cog + + recognition + + fas fa-trophy + + wallet + + fas fa-wallet + portal::administration::walletAdministration + + + reward + + fas fa-coins + portal::administration::rewardAdministration + + + + + diff --git a/wallet-webapps/src/main/webapp/WEB-INF/conf/wallet/portal/portal/administration/pages.xml b/wallet-webapps/src/main/webapp/WEB-INF/conf/wallet/portal/portal/administration/pages.xml new file mode 100644 index 000000000..20d45e8a6 --- /dev/null +++ b/wallet-webapps/src/main/webapp/WEB-INF/conf/wallet/portal/portal/administration/pages.xml @@ -0,0 +1,60 @@ + + + + + walletAdministration + Wallet adminsitration + *:/platform/rewarding + manager:/platform/rewarding + + Everyone + + + wallet + WalletAdmin + + Wallet adminsitration + Everyone + false + + + + + rewardAdministration + Reward administration + *:/platform/rewarding + manager:/platform/rewarding + + Everyone + + + wallet + RewardAdmin + + Reward administration + Everyone + false + + + + \ No newline at end of file diff --git a/wallet-webapps/src/main/webapp/WEB-INF/conf/wallet/wallet-portal-configuration.xml b/wallet-webapps/src/main/webapp/WEB-INF/conf/wallet/wallet-portal-configuration.xml index 421a6e264..f1d6a7dec 100644 --- a/wallet-webapps/src/main/webapp/WEB-INF/conf/wallet/wallet-portal-configuration.xml +++ b/wallet-webapps/src/main/webapp/WEB-INF/conf/wallet/wallet-portal-configuration.xml @@ -1,54 +1,91 @@ - - org.exoplatform.commons.addons.AddOnService - - addPlugin - addPlugin - org.exoplatform.commons.addons.AddOnPluginImpl - - - - priority - 2 - - - containerName - settings-bottom-container - - - wallet-settings-portlet - - - - wallet/WalletSettings - - - - - *:/platform/users - - - *:/platform/externals - - - - - >wallet Settings Portlet - - - false - - - false - - - false - - - - - - + + org.exoplatform.portal.config.UserPortalConfigService + + new.portal.config.user.listener + initListener + org.exoplatform.portal.config.NewPortalConfigListener + this listener init the portal configuration + 780 + + + portal.configuration + + + + + administration + + + + + portal + + + war:/conf/wallet/portal + + + ${exo.wallet.portalConfig.administration.override:true} + + + ${exo.wallet.portalConfig.administration.importmode:insert} + + + + + + + + + org.exoplatform.commons.addons.AddOnService + + addPlugin + addPlugin + org.exoplatform.commons.addons.AddOnPluginImpl + + + + priority + 2 + + + containerName + settings-bottom-container + + + wallet-settings-portlet + + + + wallet/WalletSettings + + + + + *:/platform/users + + + *:/platform/externals + + + + + >wallet Settings Portlet + + + false + + + false + + + false + + + + + + \ No newline at end of file