Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/bundle/Resources/translations/ibexa_content_edit.en.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
<target state="new">Content published.</target>
<note>key: content.published.success</note>
</trans-unit>
<trans-unit id="3f953d15b951d613c3b973522fbbf48ddd314489" resname="content.title.empty_title_placeholder">
<source>[Untitled]</source>
<target state="new">[Untitled]</target>
<note>key: content.title.empty_title_placeholder</note>
</trans-unit>
<trans-unit id="f34946beab1da2af6535a8e4a88145e9557de0aa" resname="editing">
<source>Editing</source>
<target state="new">Editing</target>
Expand Down
5 changes: 5 additions & 0 deletions src/bundle/Resources/translations/ibexa_dashboard.en.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@
<target state="new">Edit</target>
<note>key: dashboard.table.content.edit</note>
</trans-unit>
<trans-unit id="e84a6508aff9e0a1f694695d466a7dca38f42dfb" resname="dashboard.table.content.empty_name_placeholder">
<source>[Untitled]</source>
<target state="new">[Untitled]</target>
<note>key: dashboard.table.content.empty_name_placeholder</note>
</trans-unit>
<trans-unit id="e17a8999c9e44b7e8ea1ba0f5cff596ece264da5" resname="dashboard.table.content_type">
<source>Content type</source>
<target state="new">Content type</target>
Expand Down
5 changes: 5 additions & 0 deletions src/bundle/Resources/translations/ibexa_drafts.en.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
<target state="new">Delete</target>
<note>key: drafts.list.action.remove.confirmation.title</note>
</trans-unit>
<trans-unit id="a467c57cd3c072a6e0d2152a45ee3784c9f42b9d" resname="drafts.list.content.empty_name_placeholder">
<source>[Untitled]</source>
<target state="new">[Untitled]</target>
<note>key: drafts.list.content.empty_name_placeholder</note>
</trans-unit>
<trans-unit id="b62c11ec52c71a7923851340a98932ed8ac8704b" resname="drafts.list.content_type">
<source>Content type</source>
<target state="new">Content type</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

{% import _self as macros %}

{% set empty_content_name_placeholder = 'drafts.list.content.empty_name_placeholder'|trans|desc('[Untitled]') %}

{% block title %}{{ 'drafts.list'|trans|desc('Drafts') }} - {{ parent() }}{% endblock %}

{% block body_class %}ibexa-drafts-list-view{% endblock %}
Expand Down Expand Up @@ -49,7 +51,7 @@

{% set col_raw %}
<span title="{{ row.versionInfo.name }}">
{{ row.versionInfo.name }}
{{ row.versionInfo.name|default(empty_content_name_placeholder) }}
</span>
{% endset %}
{% set body_row_cols = body_row_cols|merge([{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% trans_default_domain 'ibexa_dashboard' %}
{% from '@ibexadesign/ui/component/macros.html.twig' import results_headline %}

{% set empty_content_name_placeholder = 'dashboard.table.content.empty_name_placeholder'|trans|desc('[Untitled]') %}
{% set body_rows = [] %}
{% for row in data %}
{% set body_row_cols = [] %}
Expand All @@ -19,7 +20,7 @@
}]) %}

{% set body_row_cols = body_row_cols|merge([
{ content: row.versionInfo.name },
{ content: row.versionInfo.name|default(empty_content_name_placeholder)},
{ content: row.contentType.name },
{ content: ibexa_admin_ui_config.languages.mappings[row.versionInfo.initialLanguageCode].name },
{ content: row.versionInfo.versionNo },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{% set content = content|default(null) %}
{% set show_extra_bottom_content = show_extra_bottom_content|default(false) %}
{% set is_user_content_type = content_type is defined and content_type.identifier in ibexa_admin_ui_config.userContentTypes %}
{% set empty_title_placeholder = 'content.title.empty_title_placeholder'|trans|desc('[Untitled]') %}

<div class="ibexa-edit-header {{ show_extra_bottom_content ? 'ibexa-edit-header--has-extra-content' }}">
<div class="ibexa-edit-header__containers">
Expand Down Expand Up @@ -38,7 +39,7 @@
</div>
<div class="ibexa-edit-header__container ibexa-edit-header__container--details">
<div class="ibexa-edit-header__title-section">
<h1 class="ibexa-edit-header__title">{{ title }}</h1>
<h1 class="ibexa-edit-header__title">{{ title|default(empty_title_placeholder) }}</h1>
<div class="ibexa-edit-header__after-title">
{% block after_title %}{% endblock %}
</div>
Expand Down
Loading