Skip to content

Commit 0ebe2b3

Browse files
ciastektkCopilot
andauthored
IBX-10800: Added content_details_extra_items variable to authors tab template that allows to pass extra data (#1753)
* Added content_details_extra_items that allows to pass extra data * Update src/bundle/Resources/views/themes/admin/content/tab/authors.html.twig Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 4b64510 commit 0ebe2b3

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/bundle/Resources/views/themes/admin/content/tab/authors.html.twig

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,31 @@
1717
{% endset %}
1818

1919
{% set content_details_items = [
20-
{
21-
label: 'tab.author.creator'|trans()|desc('Creator'),
22-
content: creator_name,
23-
},
2420
{
2521
label: 'tab.author.published'|trans|desc('Published'),
2622
content: content_info.publishedDate | ibexa_full_datetime
2723
},
24+
{
25+
label: 'tab.author.modified'|trans|desc('Modified'),
26+
content: content_info.modificationDate | ibexa_full_datetime
27+
},
2828
{
2929
is_break: true
3030
},
3131
{
32-
label: 'tab.author.last_contributor'|trans()|desc('Last contributor'),
33-
content: last_contributor_name,
32+
label: 'tab.author.creator'|trans()|desc('Creator'),
33+
content: creator_name,
3434
},
3535
{
36-
label: 'tab.author.modified'|trans|desc('Modified'),
37-
content: content_info.modificationDate | ibexa_full_datetime
36+
label: 'tab.author.last_contributor'|trans()|desc('Last contributor'),
37+
content: last_contributor_name,
3838
},
39+
3940
] %}
4041

4142
{% include '@ibexadesign/ui/component/details/details.html.twig' with {
4243
headline: 'tab.author.authors'|trans()|desc('Authors'),
43-
items: content_details_items,
44+
items: content_details_items|merge(content_details_extra_items|default([])),
4445
} only %}
4546

4647
{% set technical_details_items = [

0 commit comments

Comments
 (0)