Skip to content

Commit

Permalink
refs #1816 only display the first 40 chars of the label
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur committed Nov 20, 2013
1 parent c6240e6 commit e9e0c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/CoreHome/templates/_dataTableCell.twig
Expand Up @@ -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) %}
Expand Down

0 comments on commit e9e0c46

Please sign in to comment.