From 59ba5844aa6b1f3aad7313339bbb3cea72623585 Mon Sep 17 00:00:00 2001 From: Tomasz Kryszan Date: Wed, 22 Oct 2025 14:06:09 +0200 Subject: [PATCH 1/2] Added content_details_extra_items that allows to pass extra data --- .../admin/content/tab/authors.html.twig | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/bundle/Resources/views/themes/admin/content/tab/authors.html.twig b/src/bundle/Resources/views/themes/admin/content/tab/authors.html.twig index 221c555854..7363a588f4 100644 --- a/src/bundle/Resources/views/themes/admin/content/tab/authors.html.twig +++ b/src/bundle/Resources/views/themes/admin/content/tab/authors.html.twig @@ -17,30 +17,31 @@ {% endset %} {% set content_details_items = [ - { - label: 'tab.author.creator'|trans()|desc('Creator'), - content: creator_name, - }, { label: 'tab.author.published'|trans|desc('Published'), content: content_info.publishedDate | ibexa_full_datetime }, + { + label: 'tab.author.modified'|trans|desc('Modified'), + content: content_info.modificationDate | ibexa_full_datetime + }, { is_break: true }, { - label: 'tab.author.last_contributor'|trans()|desc('Last contributor'), - content: last_contributor_name, + label: 'tab.author.creator'|trans()|desc('Creator'), + content: creator_name, }, { - label: 'tab.author.modified'|trans|desc('Modified'), - content: content_info.modificationDate | ibexa_full_datetime + label: 'tab.author.last_contributor'|trans()|desc('Last contributor'), + content: last_contributor_name, }, + ] %} {% include '@ibexadesign/ui/component/details/details.html.twig' with { headline: 'tab.author.authors'|trans()|desc('Authors'), - items: content_details_items, + items: content_details_items|merge(content_details_extra_items|default({})), } only %} {% set technical_details_items = [ From 554cefab0feca62746891392a89a2ce40168df70 Mon Sep 17 00:00:00 2001 From: Tomasz Kryszan Date: Wed, 22 Oct 2025 14:49:04 +0200 Subject: [PATCH 2/2] Update src/bundle/Resources/views/themes/admin/content/tab/authors.html.twig Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../Resources/views/themes/admin/content/tab/authors.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle/Resources/views/themes/admin/content/tab/authors.html.twig b/src/bundle/Resources/views/themes/admin/content/tab/authors.html.twig index 7363a588f4..57c2331db3 100644 --- a/src/bundle/Resources/views/themes/admin/content/tab/authors.html.twig +++ b/src/bundle/Resources/views/themes/admin/content/tab/authors.html.twig @@ -41,7 +41,7 @@ {% include '@ibexadesign/ui/component/details/details.html.twig' with { headline: 'tab.author.authors'|trans()|desc('Authors'), - items: content_details_items|merge(content_details_extra_items|default({})), + items: content_details_items|merge(content_details_extra_items|default([])), } only %} {% set technical_details_items = [