diff --git a/src/bundle/Resources/config/routing.yaml b/src/bundle/Resources/config/routing.yaml
index f78903efba..4ce446cd2d 100644
--- a/src/bundle/Resources/config/routing.yaml
+++ b/src/bundle/Resources/config/routing.yaml
@@ -681,7 +681,7 @@ ibexa.user.profile.view:
controller: Ibexa\Bundle\AdminUi\Controller\User\ProfileController::viewAction
methods: ['GET']
options:
- exposed: true
+ expose: true
ibexa.user.profile.edit:
path: /user/profile/{userId}/edit
diff --git a/src/bundle/Resources/config/services/ui_config/common.yaml b/src/bundle/Resources/config/services/ui_config/common.yaml
index 06d8621f62..b7dd3d4d38 100644
--- a/src/bundle/Resources/config/services/ui_config/common.yaml
+++ b/src/bundle/Resources/config/services/ui_config/common.yaml
@@ -134,3 +134,7 @@ services:
$resultLimit: '%ibexa.site_access.config.default.search.suggestion.result_limit%'
tags:
- { name: ibexa.admin_ui.config.provider, key: 'suggestions' }
+
+ Ibexa\AdminUi\UI\Config\Provider\UserProfile:
+ tags:
+ - { name: ibexa.admin_ui.config.provider, key: 'userProfile' }
diff --git a/src/bundle/Resources/public/js/scripts/widgets/flatpickr.js b/src/bundle/Resources/public/js/scripts/widgets/flatpickr.js
index 333a02c805..22fafa7e85 100644
--- a/src/bundle/Resources/public/js/scripts/widgets/flatpickr.js
+++ b/src/bundle/Resources/public/js/scripts/widgets/flatpickr.js
@@ -1,8 +1,8 @@
-import flatpickrLanguages from '../../../../../../../../../../public/bundles/ibexaadminuiassets/vendors/flatpickr/dist/l10n';
-
-(function (global, doc, ibexa, flatpickr) {
- const { backOfficeLanguage } = ibexa.adminUiConfig;
- const flatpickrLanguage = flatpickrLanguages[backOfficeLanguage] ?? flatpickrLanguages.default;
-
- flatpickr.localize(flatpickrLanguage);
-})(window, window.document, window.ibexa, window.flatpickr);
+// import flatpickrLanguages from '../../../../../../../../../../public/bundles/ibexaadminuiassets/vendors/flatpickr/dist/l10n';
+//
+// (function (global, doc, ibexa, flatpickr) {
+// const { backOfficeLanguage } = ibexa.adminUiConfig;
+// const flatpickrLanguage = flatpickrLanguages[backOfficeLanguage] ?? flatpickrLanguages.default;
+//
+// flatpickr.localize(flatpickrLanguage);
+// })(window, window.document, window.ibexa, window.flatpickr);
diff --git a/src/bundle/ui-dev/src/modules/common/user-name/user.name.js b/src/bundle/ui-dev/src/modules/common/user-name/user.name.js
index b2eb5452aa..d2add4450c 100644
--- a/src/bundle/ui-dev/src/modules/common/user-name/user.name.js
+++ b/src/bundle/ui-dev/src/modules/common/user-name/user.name.js
@@ -2,8 +2,34 @@ import React from 'react';
import PropTypes from 'prop-types';
import Thumbnail from '../thumbnail/thumbnail';
+const { Routing, ibexa } = window;
+
+const isUserProfileEnabled = (contentType) => {
+ const config = ibexa.adminUiConfig.userProfile;
+ if (config.enabled) {
+ return config.contentType.contains(contentType);
+ }
+
+ return false;
+};
+
+const UserName = ({ userId, name, thumbnail, contentType }) => {
+ if (isUserProfileEnabled(contentType)) {
+ const profileUrl = Routing.generate('ibexa.user.profile.view', { userId: userId });
+
+ return (
+
+
+