Skip to content
Snippets Groups Projects
Commit 7e6a5fe9 authored by simon's avatar simon
Browse files

fix: duplicate rows class

parent 1f469c49
Branches fix-duplicate-rows-class
Tags
1 merge request!5fix: duplicate rows class
Pipeline #8390 passed with warnings with stages
in 6 minutes and 53 seconds
......@@ -97,17 +97,14 @@
{% set prev_row_nbr = -1 %}
{% for row_nbr, row in matrix_values %}
<tr>
{% for row_value in matrix_row_values[row_nbr] %}
{% for row_value_key, row_value in matrix_row_values[row_nbr] %}
{% set class = '' %}
{% if matrix_row_values[prev_row_nbr][loop.index] == row_value %}
{% if matrix_row_values[prev_row_nbr][row_value_key] == row_value %}
{% set class = 'matrix-duplicate-row-value' %}
{% endif %}
{% set prev_row_nbr = row_nbr %}
<td class={{class}}>{{ row_value | raw }}</td>
{% endfor %}
{% set prev_row_nbr = row_nbr %}
{% for column in matrix_column_values %}
{% if matrix_values[row_nbr][column] | length == matrix_value_names | length %}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment