diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-10-08 08:36:02 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-10-08 08:36:02 +0400 |
commit | e4b57bc5b4bb286c0798c1802799afe081915d05 (patch) | |
tree | 43af3f812a486e87c344d36f70b9591e6654f762 /plugins | |
parent | b77a47619e8a3ca25dc4780aeff6b5a717780f21 (diff) |
Small twig refactor
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/CoreVisualizations/templates/_dataTableViz_htmlTable.twig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/CoreVisualizations/templates/_dataTableViz_htmlTable.twig b/plugins/CoreVisualizations/templates/_dataTableViz_htmlTable.twig index 13c153f89c..ab2ed7a702 100644 --- a/plugins/CoreVisualizations/templates/_dataTableViz_htmlTable.twig +++ b/plugins/CoreVisualizations/templates/_dataTableViz_htmlTable.twig @@ -18,7 +18,8 @@ {% else %} {%- for rowId, row in dataTable.getRows() -%} {%- set rowHasSubtable = not subtablesAreDisabled and row.getIdSubDataTable() and properties.subtable_controller_action is not null -%} - {%- set shouldHighlightRow = rowId == constant('Piwik\\DataTable::ID_SUMMARY_ROW') and properties.highlight_summary_row -%} + {%- set isSummaryRow = (rowId == constant('Piwik\\DataTable::ID_SUMMARY_ROW')) -%} + {%- set shouldHighlightRow = isSummaryRow and properties.highlight_summary_row -%} {# display this row if it doesn't have a subtable or if we don't replace the row with the subtable #} {%- set showRow = subtablesAreDisabled |