Skip to content
Snippets Groups Projects
Commit fdd37de7 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#274 - hide pagination if no results

parent 9ed0ab1a
Branches
Tags
No related merge requests found
Pipeline #1443 failed
......@@ -64,6 +64,7 @@
<#macro pagination page>
<div class="row">
<div class="col s12 center-align">
<#if page.getTotalPages() gt 0>
<ul class="pagination">
<li class="text-color <#if page.getNumber() == 0>disabled</#if>"><a class="page-link" data-page="${page.getNumber()-1}"><i class="material-icons">chevron_left</i></a></li>
<#list 0..page.getTotalPages()-1 as i>
......@@ -71,6 +72,7 @@
</#list>
<li class="text-color <#if page.getNumber() == page.getTotalPages()-1>disabled</#if>"><a class="page-link" data-page="${page.getNumber()+1}"><i class="material-icons">chevron_right</i></a></li>
</ul>
</#if>
</div>
</div>
</#macro>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment