mirror of
https://github.com/phpbb/phpbb.git
synced 2025-09-02 21:02:41 +02:00
[ticket/13132] Enable twig expressions tests
PHPBB3-13132
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<!-- BEGIN loop -->
|
||||
|
||||
<!-- IF loop.S_ROW_NUM is divisible by 4 -->on<!-- ELSE -->off<!-- ENDIF -->
|
||||
<!-- IF loop.S_ROW_NUM is divisible by(4) -->yes<!-- ELSE -->no<!-- ENDIF -->
|
||||
|
||||
<!-- END loop -->
|
||||
|
||||
<!-- BEGIN loop -->
|
||||
|
||||
<!-- IF loop.S_ROW_NUM is divisible by 3 -->on<!-- ELSE -->off<!-- ENDIF -->
|
||||
<!-- IF loop.S_ROW_NUM is divisible by(3) -->yes<!-- ELSE -->no<!-- ENDIF -->
|
||||
|
||||
<!-- END loop -->
|
||||
|
@@ -1,11 +1,11 @@
|
||||
{% for loop_inner in loop %}
|
||||
|
||||
{% if loop_inner.S_ROW_NUM is divisible by 4 %}on{% else %}off{% endif %}
|
||||
{% if loop_inner.S_ROW_NUM is divisible by(4) %}yes{% else %}no{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
{% for loop_inner in loop %}
|
||||
|
||||
{% if loop_inner.S_ROW_NUM is divisible by 3 %}on{% else %}off{% endif %}
|
||||
{% if loop_inner.S_ROW_NUM is divisible by(3) %}yes{% else %}no{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
|
11
tests/template/templates/loop_expressions_twig2.html
Normal file
11
tests/template/templates/loop_expressions_twig2.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{% for loop_inner in loop %}
|
||||
|
||||
{% if loop.index0 is divisible by(4) %}yes{% else %}no{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
{% for loop_inner in loop %}
|
||||
|
||||
{% if loop.index0 is divisible by(3) %}yes{% else %}no{% endif %}
|
||||
|
||||
{% endfor %}
|
Reference in New Issue
Block a user