Skip to content

Commit 510ebc4

Browse files
committed
add row marker CSS classes
1 parent 59c9e57 commit 510ebc4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

news/10.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add row marker CSS classes @erral

src/cs_dynamicpages/views/dynamic_view.pt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
rows view/rows;
4141
">
4242
<tal:featured repeat="brain rows">
43-
<section class="dynamic-row ${row/row_template} state-${row/review_state} ${row/extra_class|nothing} ${row/padding_top|nothing} ${row/padding_bottom|nothing} ${row/margin_top|nothing} ${row/margin_bottom|nothing}"
43+
<section class="dynamic-row dynamic-row-number-${repeat/brain/number} dynamic-row-${python:repeat['brain'].number() % 2 == 0 and 'even' or 'odd'} ${row/row_template} state-${row/review_state} ${row/extra_class|nothing} ${row/padding_top|nothing} ${row/padding_bottom|nothing} ${row/margin_top|nothing} ${row/margin_bottom|nothing}"
4444
id="${row/id}"
4545
data-delete-target="true"
4646
data-elementid="${row/id}"

0 commit comments

Comments
 (0)