Skip to content

Commit 357bbd6

Browse files
committed
IBX-10429: [Collaboration] UI improvements for the header
1 parent f0a8d30 commit 357bbd6

File tree

11 files changed

+18
-14
lines changed

11 files changed

+18
-14
lines changed

src/bundle/Resources/translations/ibexa_content_create.en.xliff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
<note>key: creating</note>
1818
</trans-unit>
1919
<trans-unit id="582b09a837963ba464ba24493c8cc7c360b99708" resname="editing_details_subtitle">
20-
<source>under: %location%</source>
21-
<target state="new">under: %location%</target>
20+
<source>under %location%</source>
21+
<target state="new">under %location%</target>
2222
<note>key: editing_details_subtitle</note>
2323
</trans-unit>
2424
<trans-unit id="32d50c07b2eacd6fa72742ff1c1f5963c26a251d" resname="new_content_item">

src/bundle/Resources/translations/ibexa_content_edit.en.xliff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
<note>key: editing</note>
3333
</trans-unit>
3434
<trans-unit id="582b09a837963ba464ba24493c8cc7c360b99708" resname="editing_details_subtitle">
35-
<source>under: %location%</source>
36-
<target state="new">under: %location%</target>
35+
<source>under %location%</source>
36+
<target state="new">under %location%</target>
3737
<note>key: editing_details_subtitle</note>
3838
</trans-unit>
3939
<trans-unit id="009667fab56f0bec66634f009a75ffd9425f2987" resname="fieldtype.translation_is_disabled">

src/bundle/Resources/translations/ibexa_user_create.en.xliff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<note>key: Create</note>
1313
</trans-unit>
1414
<trans-unit id="582b09a837963ba464ba24493c8cc7c360b99708" resname="editing_details_subtitle">
15-
<source>under: %location%</source>
16-
<target state="new">under: %location%</target>
15+
<source>under %location%</source>
16+
<target state="new">under %location%</target>
1717
<note>key: editing_details_subtitle</note>
1818
</trans-unit>
1919
<trans-unit id="32d50c07b2eacd6fa72742ff1c1f5963c26a251d" resname="new_content_item">

src/bundle/Resources/translations/ibexa_user_edit.en.xliff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<note>key: editing</note>
1313
</trans-unit>
1414
<trans-unit id="582b09a837963ba464ba24493c8cc7c360b99708" resname="editing_details_subtitle">
15-
<source>under: %location%</source>
16-
<target state="new">under: %location%</target>
15+
<source>under %location%</source>
16+
<target state="new">under %location%</target>
1717
<note>key: editing_details_subtitle</note>
1818
</trans-unit>
1919
</body>

src/bundle/Resources/views/themes/admin/content/create/create.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
title: 'new_content_item'|trans({'%contentType%': content_type.name})|desc('New %contentType%'),
2020
icon_name: content_type.name,
2121
show_autosave_status: true,
22-
subtitle: 'editing_details_subtitle'|trans({ '%location%': parent_location.contentInfo.name })|desc('under: %location%'),
22+
subtitle: 'editing_details_subtitle'|trans({ '%location%': parent_location.contentInfo.name })|desc('under %location%'),
2323
context_actions: knp_menu_render(content_create_sidebar_right, {'template': '@ibexadesign/ui/menu/context_menu.html.twig'})
2424
} %}
2525
{% block after_title %}

src/bundle/Resources/views/themes/admin/content/edit/edit.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
show_autosave_status: true,
2424
description: content_type.description,
2525
language: language,
26-
subtitle: 'editing_details_subtitle'|trans({ '%location%': parent_location.contentInfo.name })|desc('under: %location%'),
26+
subtitle: 'editing_details_subtitle'|trans({ '%location%': parent_location.contentInfo.name })|desc('under %location%'),
2727
context_actions: knp_menu_render(content_edit_sidebar_right, { 'template': '@ibexadesign/ui/menu/context_menu.html.twig' })
2828
} %}
2929
{% block after_title %}

src/bundle/Resources/views/themes/admin/ui/edit_header.html.twig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@
5454
{% if subtitle is defined %}
5555
<div class="ibexa-edit-header__subtitle">{{ subtitle }}</div>
5656
{% endif %}
57+
58+
{# {{ dump(ibexa_admin_ui_config.userContentTypes) }}
59+
{{ dump(content_type.identifier) }}
60+
{% set checkIsMetaVisible = (content is defined and content is not null) %} #}
5761

5862
{% if content is not null and not is_user_content_type %}
5963
<div class="ibexa-edit-header__meta">

src/bundle/Resources/views/themes/admin/ui/on_the_fly/create_on_the_fly.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
{% include '@ibexadesign/ui/edit_header.html.twig' with {
3232
action_name: 'creating'|trans|desc('Creating'),
3333
title: 'new_content_item'|trans({'%contentType%': content_type.name})|desc('New %contentType%'),
34-
subtitle: 'editing_details_subtitle'|trans({ '%location%': parent_location.contentInfo.name })|desc('under: %location%'),
34+
subtitle: 'editing_details_subtitle'|trans({ '%location%': parent_location.contentInfo.name })|desc('under %location%'),
3535
icon_name: content_type.identifier,
3636
show_autosave_status: true,
3737
description: content_type.description,

src/bundle/Resources/views/themes/admin/ui/on_the_fly/edit_on_the_fly.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
content_type_name: content_type.name,
3636
show_autosave_status: true,
3737
description: content_type.description,
38-
subtitle: 'editing_details_subtitle'|trans({ '%location%': parent_location.contentInfo.name })|desc('under: %location%'),
38+
subtitle: 'editing_details_subtitle'|trans({ '%location%': parent_location.contentInfo.name })|desc('under %location%'),
3939
context_actions: context_actions,
4040
} %}
4141
{% endblock %}

src/bundle/Resources/views/themes/admin/user/create.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
icon_name: content_type.name,
1818
show_autosave_status: false,
1919
title: 'new_content_item'|trans({'%contentType%': content_type.name})|desc('New %contentType%'),
20-
subtitle: 'editing_details_subtitle'|trans({ '%location%': parent_location.contentInfo.name })|desc('under: %location%'),
20+
subtitle: 'editing_details_subtitle'|trans({ '%location%': parent_location.contentInfo.name })|desc('under %location%'),
2121
context_actions: knp_menu_render(user_content_edit_menu, {'template': '@ibexadesign/ui/menu/context_menu.html.twig'})
2222
} %}
2323
{% endblock %}

0 commit comments

Comments
 (0)