I'm new for thymeleaf.
The question is easy when it's in jsp. But it beats me in thymeleaf.
I want to complete this function as below:
if (page.number<=1) html like this: <li class="q-pagination-disabled">Pre</li> else <li><a href="/pages/{page.number-1}">Pre</a></li> But I can't finish it with th:if,th:href,th:remove and so on. Does anyone know how to do it?