diff --git a/src/bundle/Resources/public/scss/_user-name.scss b/src/bundle/Resources/public/scss/_user-name.scss
new file mode 100644
index 0000000000..b8df00ccca
--- /dev/null
+++ b/src/bundle/Resources/public/scss/_user-name.scss
@@ -0,0 +1,18 @@
+.ibexa-user-name {
+ display: inline-flex;
+ align-items: center;
+
+ &__thumbnail {
+ width: calculateRem(20px);
+ height: calculateRem(20px);
+ margin-right: calculateRem(8px);
+ }
+
+ &__text {
+ white-space: nowrap;
+ }
+
+ .ibexa-user-thumbnail {
+ vertical-align: initial;
+ }
+}
diff --git a/src/bundle/Resources/public/scss/_user-thumbnail.scss b/src/bundle/Resources/public/scss/_user-thumbnail.scss
index c0f90498fc..44fc2b7738 100644
--- a/src/bundle/Resources/public/scss/_user-thumbnail.scss
+++ b/src/bundle/Resources/public/scss/_user-thumbnail.scss
@@ -1,7 +1,7 @@
.ibexa-user-thumbnail {
&--img {
- width: calculateRem(24px);
- height: calculateRem(24px);
+ width: calculateRem(20px);
+ height: calculateRem(20px);
border-radius: 50%;
}
}
diff --git a/src/bundle/Resources/public/scss/ibexa.scss b/src/bundle/Resources/public/scss/ibexa.scss
index 7c2c7fa035..e5ae89c97e 100644
--- a/src/bundle/Resources/public/scss/ibexa.scss
+++ b/src/bundle/Resources/public/scss/ibexa.scss
@@ -124,3 +124,4 @@
@import 'summary-tile';
@import 'double-input-range';
@import 'switcher';
+@import 'user-name';
diff --git a/src/bundle/Resources/public/scss/ui/modules/_common.scss b/src/bundle/Resources/public/scss/ui/modules/_common.scss
index e29cac2861..65e08b6562 100644
--- a/src/bundle/Resources/public/scss/ui/modules/_common.scss
+++ b/src/bundle/Resources/public/scss/ui/modules/_common.scss
@@ -2,3 +2,4 @@
@import 'common/tooltip.popup';
@import 'common/thumbnail';
@import 'common/simple.dropdown';
+@import 'common/user.name';
diff --git a/src/bundle/Resources/public/scss/ui/modules/common/_user.name.scss b/src/bundle/Resources/public/scss/ui/modules/common/_user.name.scss
new file mode 100644
index 0000000000..3d5f90ea2a
--- /dev/null
+++ b/src/bundle/Resources/public/scss/ui/modules/common/_user.name.scss
@@ -0,0 +1,7 @@
+.c-user-name {
+ .c-thumbnail__image {
+ width: calculateRem(20px);
+ height: calculateRem(20px);
+ border-radius: 50%;
+ }
+}
diff --git a/src/bundle/Resources/views/themes/admin/content/tab/details.html.twig b/src/bundle/Resources/views/themes/admin/content/tab/details.html.twig
index bc860a8211..a707bc0229 100644
--- a/src/bundle/Resources/views/themes/admin/content/tab/details.html.twig
+++ b/src/bundle/Resources/views/themes/admin/content/tab/details.html.twig
@@ -7,14 +7,31 @@
{{ translation.name }}
{% endfor %}
{% endset %}
+
+{% set creator_name %}
+ {% if creator is not empty %}
+ {% include '@ibexadesign/ui/component/user/user.html.twig' with { user: creator } only %}
+ {% else %}
+ {{ 'tab.details.creator.not_found'|trans|desc('Can\'t fetch creator') }}
+ {% endif %}
+{% endset %}
+
+{% set last_contributor_name %}
+ {% if last_contributor is not empty %}
+ {% include '@ibexadesign/ui/component/user/user.html.twig' with { user: last_contributor } only %}
+ {% else %}
+ {{ 'tab.details.last_contributor.not_found'|trans|desc('Can\'t fetch last contributor') }}
+ {% endif %}
+{% endset %}
+
{% set content_details_items = [
{
label: 'tab.details.creator'|trans()|desc('Creator'),
- content: creator is not empty ? ibexa_content_name(creator) : 'tab.details.creator.not_found'|trans|desc('Can\'t fetch creator'),
+ content: creator_name,
},
{
label: 'tab.details.last_contributor'|trans()|desc('Last contributor'),
- content: last_contributor is not empty ? ibexa_content_name(last_contributor) : 'tab.details.last_contributor.not_found'|trans|desc('Can\'t fetch last contributor'),
+ content: last_contributor_name,
},
{
label: 'tab.details.published_version'|trans()|desc('Published version'),
diff --git a/src/bundle/Resources/views/themes/admin/content/tab/versions/table.html.twig b/src/bundle/Resources/views/themes/admin/content/tab/versions/table.html.twig
index 2fd8b7d5c3..9c6c371c84 100644
--- a/src/bundle/Resources/views/themes/admin/content/tab/versions/table.html.twig
+++ b/src/bundle/Resources/views/themes/admin/content/tab/versions/table.html.twig
@@ -81,10 +81,17 @@
content: ibexa_admin_ui_config.languages.mappings[version.initialLanguageCode].name,
} %}
{{ custom_columns }}
+
+ {% set author_name %}
+ {% if version.author is not empty %}
+ {% include '@ibexadesign/ui/component/user/user.html.twig' with { user: version.author } only %}
+ {% else %}
+ {{ 'tab.versions.table.author.not_found'|trans|desc('Can\'t fetch contributor') }}
+ {% endif %}
+ {% endset %}
+
{% include '@ibexadesign/ui/component/table/table_body_cell.html.twig' with {
- content: version.author is not empty
- ? ibexa_content_name(version.author)
- : 'tab.versions.table.author.not_found'|trans|desc('Can\'t fetch contributor'),
+ content: author_name,
} %}
{% if not is_draft_conflict %}
{% include '@ibexadesign/ui/component/table/table_body_cell.html.twig' with {
diff --git a/src/bundle/Resources/views/themes/admin/trash/list.html.twig b/src/bundle/Resources/views/themes/admin/trash/list.html.twig
index d7c0d17e4f..3714363208 100644
--- a/src/bundle/Resources/views/themes/admin/trash/list.html.twig
+++ b/src/bundle/Resources/views/themes/admin/trash/list.html.twig
@@ -146,11 +146,17 @@
raw: true,
}]) %}
+ {% set creator_name %}
+ {% if trash_item.creator is not empty %}
+ {% include '@ibexadesign/ui/component/user/user.html.twig' with { user: trash_item.creator } only %}
+ {% else %}
+ {{ 'trash.item.deleted_user'|trans|desc('Deleted user') }}
+ {% endif %}
+ {% endset %}
+
{% set body_row_cols = body_row_cols|merge([
{ content: trash_item.contentType.name },
- { content: trash_item.creator is not empty
- ? ibexa_content_name(trash_item.creator.content) :
- 'trash.item.deleted_user'|trans|desc('Deleted user') },
+ { content: creator_name },
]) %}
{% if can_view_section %}
diff --git a/src/bundle/Resources/views/themes/admin/ui/component/user/user.html.twig b/src/bundle/Resources/views/themes/admin/ui/component/user/user.html.twig
new file mode 100644
index 0000000000..bfb58d910c
--- /dev/null
+++ b/src/bundle/Resources/views/themes/admin/ui/component/user/user.html.twig
@@ -0,0 +1,17 @@
+