From e9e0c46200c5c31ac0e1301700ac91c0a833ca84 Mon Sep 17 00:00:00 2001 From: Thomas Steur Date: Wed, 20 Nov 2013 04:43:54 +0000 Subject: [PATCH] refs #1816 only display the first 40 chars of the label --- plugins/CoreHome/templates/_dataTableCell.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/CoreHome/templates/_dataTableCell.twig b/plugins/CoreHome/templates/_dataTableCell.twig index 3ef2e8803f2..8d319c49123 100644 --- a/plugins/CoreHome/templates/_dataTableCell.twig +++ b/plugins/CoreHome/templates/_dataTableCell.twig @@ -28,7 +28,7 @@ {% set siteTotal = siteSummary.getFirstRow.getColumn(column) %} {% set rowPercentage = row.getColumn(column)|percentage(reportTotal, 1) %} - {% set firstPartOfTooltip = ["'", row.getColumn(labelColumn), "' represents ", rowPercentage, ' of ', reportTotal, ' ', translations[column]|default(column), ' with ', translations[labelColumn]|default(labelColumn), '.']|join %} + {% set firstPartOfTooltip = ["'", row.getColumn(labelColumn)|truncate(40), "' represents ", rowPercentage, ' of ', reportTotal, ' ', translations[column]|default(column), ' with ', translations[labelColumn]|default(labelColumn), '.']|join %} {% if siteTotal and siteTotal != reportTotal %} {% set totalPercentage = row.getColumn(column)|percentage(siteTotal, 1) %}