File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
ux.symfony.com/templates/components Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
<div class =" p-4" >
4
4
<div id =" results" style =" display: flex; gap: 1rem; flex-direction: column;" >
5
5
6
- {% if this . page > 1 %}
6
+ {% if page > 1 %}
7
7
{# 🦊 #}
8
8
{# Adding a fake "previous page" div is enough to trick the system #}
9
9
{# It must have the same ID than the original page #}
10
- <div class =" ProductGrid_page" id =" page--{{ this . page - 1 }}" data-live-ignore =" true" ></div >
10
+ <div class =" ProductGrid_page" id =" page--{{ page - 1 }}" data-live-ignore =" true" ></div >
11
11
{% endif %}
12
12
13
13
{# Current page #}
14
- <div class =" ProductGrid_page" id =" page--{{ this . page }}" data-live-ignore =" true" >
14
+ <div class =" ProductGrid_page" id =" page--{{ page }}" data-live-ignore =" true" >
15
15
{% for item in this .items %}
16
16
<article class =" ProductGrid_item" data-num =" {{ item .id }}"
17
17
style =" --color: {{ item .color }};" >
32
32
data-action =" live#action"
33
33
data-live-action-param =" more"
34
34
data-scroll-target =" loader"
35
- class =" btn btn-primary" >Load More (page {{ this . page + 1 }})
35
+ class =" btn btn-primary" >Load More (page {{ page + 1 }})
36
36
</button >
37
37
</div >
38
38
{% endif %}
You can’t perform that action at this time.
0 commit comments