File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ <h3 class="text-sm font-semibold text-gray-900 truncate group-hover:text-brand-p
2828</ div >
2929{{if gt .TotalPages 1}}
3030< div class ="flex justify-center items-center gap-2 pb-8 ">
31- {{if gt .Page 1}}< a hx-get ="{{paginatePartial .Filters (sub .Page 1)}} " hx-target ="#package-results " hx-swap ="innerHTML show:#filter-form:top " class ="px-4 py-2 border border-gray-200 rounded-lg text-sm hover:bg-gray-50 transition-colors cursor-pointer "> « Previous</ a > {{end}}
31+ {{if gt .Page 1}}< a href =" {{paginate .Filters (sub .Page 1)}} " hx-get ="{{paginatePartial .Filters (sub .Page 1)}} " hx-target ="#package-results " hx-swap ="innerHTML show:#filter-form:top " class ="px-4 py-2 border border-gray-200 rounded-lg text-sm hover:bg-gray-50 transition-colors cursor-pointer "> « Previous</ a > {{end}}
3232< span class ="px-4 py-2 text-sm text-gray-500 "> Page {{.Page}} of {{.TotalPages}}</ span >
33- {{if lt .Page .TotalPages}}< a hx-get ="{{paginatePartial .Filters (add .Page 1)}} " hx-target ="#package-results " hx-swap ="innerHTML show:#filter-form:top " class ="px-4 py-2 border border-gray-200 rounded-lg text-sm hover:bg-gray-50 transition-colors cursor-pointer "> Next »</ a > {{end}}
33+ {{if lt .Page .TotalPages}}< a href =" {{paginate .Filters (add .Page 1)}} " hx-get ="{{paginatePartial .Filters (add .Page 1)}} " hx-target ="#package-results " hx-swap ="innerHTML show:#filter-form:top " class ="px-4 py-2 border border-gray-200 rounded-lg text-sm hover:bg-gray-50 transition-colors cursor-pointer "> Next »</ a > {{end}}
3434</ div >
3535{{end}}
3636< p id ="package-count " hx-swap-oob ="true " class ="text-sm text-gray-500 whitespace-nowrap "> {{formatNumberComma .Total}} packages available</ p >
You can’t perform that action at this time.
0 commit comments