Skip to content
Permalink
Browse files

Merge pull request #165 from inakijv/Table_No_content_display

EZP-28360: Tables consistency, standardized message when no content displayed
  • Loading branch information...
lserwatka committed Dec 13, 2017
2 parents 7036e95 + 7f1acc3 commit 84129d52c58ca58fe04586c155fb001a1510f895
@@ -59,11 +59,13 @@
}
}

.ez-relations-box-list-no-content {
.ez-table-no-content {
margin-bottom: 3rem;
padding: 0.75rem 0.5rem;
padding: 0.75rem 1rem;
background-color: $ez-white;
font-style: italic;
font-size: .875rem;
color: $ez-color-base-dark;
}

.ez-info-view {
@@ -51,8 +51,8 @@
{% else %}
<tr>
<td colspan="3">
<p class="font-italic">
<strong>{{ 'section.assigned_content.empty'|trans|desc('No content items.') }}</strong>
<p class="ez-table-no-content mb-0 pl-0 py-1">
{{ 'section.assigned_content.empty'|trans|desc('No content items.') }}
{{ 'section.assigned_content.empty_desc'|trans|desc('Content items you assign to this section will appear here.') }}
</p>
</td>
@@ -48,7 +48,7 @@
{% if trash_items is empty %}
<tr>
<td colspan="4">
<span>{{ 'trash.empty'|trans|desc('Trash is empty. Any content item you send to trash will end up here.') }}</span>
<span class="ez-table-no-content mb-0 py-1 pl-0">{{ 'trash.empty'|trans|desc('Trash is empty. Any content item you send to trash will end up here.') }}</span>
</td>
</tr>
{% else %}
@@ -6,7 +6,7 @@
{% if relations is not empty %}
{{ include('@EzPlatformAdminUi/content/tab/relations/table.html.twig', {'relations': relations}) }}
{% else %}
<p class="ez-relations-box-list-no-content">
<p class="ez-table-no-content">
{{ 'tab.relations.no_relations'|trans()|desc('This content item has no related content.') }}
</p>
{% endif %}
@@ -16,7 +16,7 @@
{% if reverse_relations is not empty %}
{{ include('@EzPlatformAdminUi/content/tab/relations/table.html.twig', {'relations': reverse_relations}) }}
{% else %}
<p class="ez-relations-box-list-no-content">
<p class="ez-table-no-content">
{{ 'tab.relations.no_reverse_relations'|trans()|desc('This content item has no reverse relations.') }}
</p>
{% endif %}
@@ -32,7 +32,7 @@
</tbody>
</table>
{% else %}
<p class="ez-relations-box-list-no-content">
<p class="ez-table-no-content">
{{ 'tab.urls.no_custom_urls'|trans|desc('This content item has no custom url aliases.') }}
</p>
{% endif %}
@@ -59,7 +59,7 @@
</tbody>
</table>
{% else %}
<p class="ez-relations-box-list-no-content">
<p class="ez-table-no-content">
{{ 'tab.urls.no_system_urls'|trans|desc('This content item has no system urls.') }}
</p>
{% endif %}
@@ -35,5 +35,5 @@
</tbody>
</table>
{% else %}
<p>{{ 'dashboard.tab.all_content.empty'|trans|desc('No content items. Content items you create will appear here') }}</p>
<p class="ez-table-no-content mb-0 py-0">{{ 'dashboard.tab.all_content.empty'|trans|desc('No content items. Content items you create will appear here') }}</p>
{% endif %}
@@ -35,5 +35,5 @@
</tbody>
</table>
{% else %}
<p>{{ 'dashboard.tab.all_media.empty'|trans|desc('No content items. Media items you create will appear here') }}</p>
<p class"ez-table-no-content mb-0 py-0">{{ 'dashboard.tab.all_media.empty'|trans|desc('No content items. Media items you create will appear here') }}</p>
{% endif %}
@@ -30,5 +30,5 @@
</tbody>
</table>
{% else %}
<p>{{ 'dashboard.tab.my_content.empty'|trans|desc('No content items. Content items you create will appear here') }}</p>
<p class="ez-table-no-content mb-0 py-0">{{ 'dashboard.tab.my_content.empty'|trans|desc('No content items. Content items you create will appear here') }}</p>
{% endif %}
@@ -34,5 +34,5 @@
</tbody>
</table>
{% else %}
<p class="ez-table-empty">{{ 'dashboard.tab.my_drafts.empty'|trans|desc('No content items. Draft items you create will appear here') }}</p>
<p class="ez-table-no-content mb-0 py-0">{{ 'dashboard.tab.my_drafts.empty'|trans|desc('No content items. Draft items you create will appear here') }}</p>
{% endif %}
@@ -30,5 +30,5 @@
</tbody>
</table>
{% else %}
<p>{{ 'dashboard.tab.my_media.empty'|trans|desc('No content items. Media items you create will appear here') }}</p>
<p class="ez-table-no-content mb-0 py-0">{{ 'dashboard.tab.my_media.empty'|trans|desc('No content items. Media items you create will appear here') }}</p>
{% endif %}

0 comments on commit 84129d5

Please sign in to comment.
You can’t perform that action at this time.