diff --git a/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/all_content.html.twig b/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/all_content.html.twig index a3d799db5a..6af4bf516e 100644 --- a/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/all_content.html.twig +++ b/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/all_content.html.twig @@ -1,6 +1,8 @@ {% trans_default_domain 'ibexa_dashboard' %} {% import "@ibexadesign/ui/dashboard/macros.html.twig" as macros %} +{% from '@ibexadesign/ui/component/macros.html.twig' import results_headline %} + {% set body_rows = [] %} {% for row in data %} {% set body_row_cols = [] %} @@ -45,6 +47,7 @@ {% endfor %} {% include '@ibexadesign/ui/component/table/table.html.twig' with { + headline: results_headline(data|length), head_cols: [ { has_icon: true }, { content: 'dashboard.table.name'|trans|desc('Name') }, diff --git a/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/all_media.html.twig b/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/all_media.html.twig index 8a5ae27f53..83ed7167a5 100644 --- a/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/all_media.html.twig +++ b/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/all_media.html.twig @@ -1,6 +1,7 @@ {% trans_default_domain 'ibexa_dashboard' %} {% import "@ibexadesign/ui/dashboard/macros.html.twig" as macros %} +{% from '@ibexadesign/ui/component/macros.html.twig' import results_headline %} {% set body_rows = [] %} {% for row in data %} @@ -46,6 +47,7 @@ {% endfor %} {% include '@ibexadesign/ui/component/table/table.html.twig' with { + headline: results_headline(data|length), head_cols: [ { has_icon: true }, { content: 'dashboard.table.name'|trans|desc('Name') }, diff --git a/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/my_content.html.twig b/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/my_content.html.twig index 60c7a05b85..2645ac0556 100644 --- a/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/my_content.html.twig +++ b/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/my_content.html.twig @@ -1,6 +1,7 @@ {% trans_default_domain 'ibexa_dashboard' %} {% import "@ibexadesign/ui/dashboard/macros.html.twig" as macros %} +{% from '@ibexadesign/ui/component/macros.html.twig' import results_headline %} {% set body_rows = [] %} {% for row in data %} @@ -37,6 +38,7 @@ {% endfor %} {% include '@ibexadesign/ui/component/table/table.html.twig' with { + headline: results_headline(data|length), head_cols: [ { has_icon: true }, { content: 'dashboard.table.name'|trans|desc('Name') }, diff --git a/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/my_draft_list.html.twig b/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/my_draft_list.html.twig index edc5a0a5d1..0d96844e92 100644 --- a/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/my_draft_list.html.twig +++ b/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/my_draft_list.html.twig @@ -1,4 +1,5 @@ {% trans_default_domain 'ibexa_dashboard' %} +{% from '@ibexadesign/ui/component/macros.html.twig' import results_headline %} {% set body_rows = [] %} {% for row in data %} @@ -54,6 +55,7 @@ {% endfor %} {% include '@ibexadesign/ui/component/table/table.html.twig' with { + headline: results_headline(pager.getNbResults()), head_cols: [ { has_icon: true }, { content: 'dashboard.table.name'|trans|desc('Name') }, diff --git a/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/my_media.html.twig b/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/my_media.html.twig index dd7eeb0eea..e6259720b7 100644 --- a/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/my_media.html.twig +++ b/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/my_media.html.twig @@ -1,6 +1,7 @@ {% trans_default_domain 'ibexa_dashboard' %} {% import "@ibexadesign/ui/dashboard/macros.html.twig" as macros %} +{% from '@ibexadesign/ui/component/macros.html.twig' import results_headline %} {% set body_rows = [] %} {% for row in data %} @@ -37,6 +38,7 @@ {% endfor %} {% include '@ibexadesign/ui/component/table/table.html.twig' with { + headline: results_headline(data|length), head_cols: [ { has_icon: true }, { content: 'dashboard.table.name'|trans|desc('Name') },