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