diff options
Diffstat (limited to 'plugins/CoreHome/templates/ReportsByDimension/_reportsByDimension.twig')
-rw-r--r-- | plugins/CoreHome/templates/ReportsByDimension/_reportsByDimension.twig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/CoreHome/templates/ReportsByDimension/_reportsByDimension.twig b/plugins/CoreHome/templates/ReportsByDimension/_reportsByDimension.twig index acea8389b3..184d6fe56a 100644 --- a/plugins/CoreHome/templates/ReportsByDimension/_reportsByDimension.twig +++ b/plugins/CoreHome/templates/ReportsByDimension/_reportsByDimension.twig @@ -2,11 +2,12 @@ <div class="entityList"> {% for category, dimensions in dimensionCategories %} + {% set firstCategory = (loop.index0 == 0) %} <div class='dimensionCategory'> {{ category|translate }} <ul class='listCircle'> {% for idx, dimension in dimensions %} - <li class="reportDimension {% if idx == 0 and loop.parent.index0 == 0 %}activeDimension{% endif %}" + <li class="reportDimension {% if idx == 0 and firstCategory %}activeDimension{% endif %}" data-url="{{ dimension.url }}"> <span class='dimension'>{{ dimension.title|translate }}</span> </li> |