Skip to content

Commit 6471cb3

Browse files
committed
IBX-10238: Unified table headlines in dashboard
1 parent 7371bb7 commit 6471cb3

File tree

5 files changed

+11
-0
lines changed

5 files changed

+11
-0
lines changed

src/bundle/Resources/views/themes/admin/ui/dashboard/tab/all_content.html.twig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{% trans_default_domain 'ibexa_dashboard' %}
22

33
{% import "@ibexadesign/ui/dashboard/macros.html.twig" as macros %}
4+
{% from '@ibexadesign/ui/component/macros.html.twig' import results_headline %}
5+
46
{% set body_rows = [] %}
57
{% for row in data %}
68
{% set body_row_cols = [] %}
@@ -45,6 +47,7 @@
4547
{% endfor %}
4648

4749
{% include '@ibexadesign/ui/component/table/table.html.twig' with {
50+
headline: results_headline(data|length|default(0)),
4851
head_cols: [
4952
{ has_icon: true },
5053
{ content: 'dashboard.table.name'|trans|desc('Name') },

src/bundle/Resources/views/themes/admin/ui/dashboard/tab/all_media.html.twig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{% trans_default_domain 'ibexa_dashboard' %}
22

33
{% import "@ibexadesign/ui/dashboard/macros.html.twig" as macros %}
4+
{% from '@ibexadesign/ui/component/macros.html.twig' import results_headline %}
45

56
{% set body_rows = [] %}
67
{% for row in data %}
@@ -46,6 +47,7 @@
4647
{% endfor %}
4748

4849
{% include '@ibexadesign/ui/component/table/table.html.twig' with {
50+
headline: results_headline(data|length|default(0)),
4951
head_cols: [
5052
{ has_icon: true },
5153
{ content: 'dashboard.table.name'|trans|desc('Name') },

src/bundle/Resources/views/themes/admin/ui/dashboard/tab/my_content.html.twig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{% trans_default_domain 'ibexa_dashboard' %}
22

33
{% import "@ibexadesign/ui/dashboard/macros.html.twig" as macros %}
4+
{% from '@ibexadesign/ui/component/macros.html.twig' import results_headline %}
45

56
{% set body_rows = [] %}
67
{% for row in data %}
@@ -37,6 +38,7 @@
3738
{% endfor %}
3839

3940
{% include '@ibexadesign/ui/component/table/table.html.twig' with {
41+
headline: results_headline(data|length|default(0)),
4042
head_cols: [
4143
{ has_icon: true },
4244
{ content: 'dashboard.table.name'|trans|desc('Name') },

src/bundle/Resources/views/themes/admin/ui/dashboard/tab/my_draft_list.html.twig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% trans_default_domain 'ibexa_dashboard' %}
2+
{% from '@ibexadesign/ui/component/macros.html.twig' import results_headline %}
23

34
{% set body_rows = [] %}
45
{% for row in data %}
@@ -54,6 +55,7 @@
5455
{% endfor %}
5556

5657
{% include '@ibexadesign/ui/component/table/table.html.twig' with {
58+
headline: results_headline(pager.getNbResults()),
5759
head_cols: [
5860
{ has_icon: true },
5961
{ content: 'dashboard.table.name'|trans|desc('Name') },

src/bundle/Resources/views/themes/admin/ui/dashboard/tab/my_media.html.twig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{% trans_default_domain 'ibexa_dashboard' %}
22

33
{% import "@ibexadesign/ui/dashboard/macros.html.twig" as macros %}
4+
{% from '@ibexadesign/ui/component/macros.html.twig' import results_headline %}
45

56
{% set body_rows = [] %}
67
{% for row in data %}
@@ -37,6 +38,7 @@
3738
{% endfor %}
3839

3940
{% include '@ibexadesign/ui/component/table/table.html.twig' with {
41+
headline: results_headline(data|length|default(0)),
4042
head_cols: [
4143
{ has_icon: true },
4244
{ content: 'dashboard.table.name'|trans|desc('Name') },

0 commit comments

Comments
 (0)