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 33 <div class =" p-4" >
44 <div id =" results" style =" display: flex; gap: 1rem; flex-direction: column;" >
55
6- {% if this . page > 1 %}
6+ {% if page > 1 %}
77 {# 🦊 #}
88 {# Adding a fake "previous page" div is enough to trick the system #}
99 {# 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 >
1111 {% endif %}
1212
1313 {# 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" >
1515 {% for item in this .items %}
1616 <article class =" ProductGrid_item" data-num =" {{ item .id }}"
1717 style =" --color: {{ item .color }};" >
3232 data-action =" live#action"
3333 data-live-action-param =" more"
3434 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 }})
3636 </button >
3737 </div >
3838 {% endif %}
You can’t perform that action at this time.
0 commit comments