Skip to content

Commit 547807e

Browse files
-
1 parent d604c9b commit 547807e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

templates/Modules/shard/shard_stats.html.twig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
{% for key, total in data.totals %}
2424
{% if 'shards_total_size' == key %}
2525
{{ appImport.dashboardKpi({'title': ('stats_data.' ~ key)|trans, 'badge': {'title': total|human_filesize}}) }}
26+
{% elseif 'shards_total_primary' == key %}
27+
{% if is_granted('SHARDS', 'global') %}
28+
{{ appImport.dashboardKpi({'title': ('stats_data.' ~ key)|trans, 'badge': {'title': total, 'link': path('shards', {'type': 'primary'})}}) }}
29+
{% else %}
30+
{{ appImport.dashboardKpi({'title': ('stats_data.' ~ key)|trans, 'badge': {'title': total}}) }}
31+
{% endif %}
2632
{% elseif 'shards_total_unassigned' == key %}
2733
{% if is_granted('SHARDS', 'global') and 0 < total %}
2834
{{ appImport.dashboardKpi({'title': ('stats_data.' ~ key)|trans, 'badge': {'title': total, 'context': 'danger', 'link': path('shards', {'state[]': 'unassigned'})}}) }}

0 commit comments

Comments
 (0)