Skip to content

Commit

Permalink
Small twig refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed Oct 8, 2014
1 parent b77a476 commit e4b57bc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e4b57bc

Please sign in to comment.