Skip to content

Commit 1596d15

Browse files
authored
IBX-10417: Removed redundant information in header create/edit (#1663)
1 parent f6de641 commit 1596d15

File tree

7 files changed

+12
-16
lines changed

7 files changed

+12
-16
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@
3131
<target state="new">Editing</target>
3232
<note>key: editing</note>
3333
</trans-unit>
34-
<trans-unit id="750bead6705b295c7b7d66c27b2768c1b9329ed5" resname="editing_details">
35-
<source>Location: %location% Translation: %language%</source>
36-
<target state="new">Location: %location% Translation: %language%</target>
37-
<note>key: editing_details</note>
38-
</trans-unit>
3934
<trans-unit id="582b09a837963ba464ba24493c8cc7c360b99708" resname="editing_details_subtitle">
4035
<source>under: %location%</source>
4136
<target state="new">under: %location%</target>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
<target state="new">Creating</target>
1212
<note>key: Create</note>
1313
</trans-unit>
14-
<trans-unit id="750bead6705b295c7b7d66c27b2768c1b9329ed5" resname="editing_details">
15-
<source>Location: %location%</source>
16-
<target state="new">Location: %location%</target>
17-
<note>key: editing_details</note>
14+
<trans-unit id="582b09a837963ba464ba24493c8cc7c360b99708" resname="editing_details_subtitle">
15+
<source>under: %location%</source>
16+
<target state="new">under: %location%</target>
17+
<note>key: editing_details_subtitle</note>
1818
</trans-unit>
1919
<trans-unit id="32d50c07b2eacd6fa72742ff1c1f5963c26a251d" resname="new_content_item">
2020
<source>New %contentType%</source>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
<target state="new">Editing</target>
1212
<note>key: editing</note>
1313
</trans-unit>
14-
<trans-unit id="750bead6705b295c7b7d66c27b2768c1b9329ed5" resname="editing_details">
15-
<source>Location: %location%</source>
16-
<target state="new">Location: %location%</target>
17-
<note>key: editing_details</note>
14+
<trans-unit id="582b09a837963ba464ba24493c8cc7c360b99708" resname="editing_details_subtitle">
15+
<source>under: %location%</source>
16+
<target state="new">under: %location%</target>
17+
<note>key: editing_details_subtitle</note>
1818
</trans-unit>
1919
</body>
2020
</file>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +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%'),
3435
icon_name: content_type.identifier,
3536
show_autosave_status: true,
3637
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'|trans({ '%location%': parent_location.contentInfo.name, '%language%': language.name })|desc('Location: %location% Translation: %language%'),
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'|trans({ '%location%': parent_location.contentInfo.name })|desc('Location: %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 %}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
icon_name: content_type.name,
1919
show_autosave_status: false,
2020
title: "%s %s"|format(user.getFieldValue('first_name'), user.getFieldValue('last_name')),
21-
subtitle: parent_location ? 'editing_details'|trans({ '%location%': parent_location.contentInfo.name })|desc('Location: %location%') : null,
21+
subtitle: parent_location ? 'editing_details_subtitle'|trans({ '%location%': parent_location.contentInfo.name })|desc('under: %location%') : null,
2222
context_actions: knp_menu_render(user_content_edit_menu, {'template': '@ibexadesign/ui/menu/context_menu.html.twig'})
2323
} %}
2424
{% endblock %}

0 commit comments

Comments
 (0)