<div class="row d-flex justify-content-center">
  <div class="col-sm-4">
    <span>Anzahl der Einträge: {totalrecords}</span>
    <span>Aktuell Seitenummer: {paginator.currentPageNumber}</span>
  </div>
  <div class="col-sm-8">
  <ul class="pagination">
    <f:if condition="{paging.previousPageNumber} && {paging.previousPageNumber} >= {paging.firstPageNumber}">
      <f:then>
        <li class="waves-effect list-group">
          <a href="{f:uri.action(action: actionName, arguments:{currentPage: 1, daysPast: daysPast})}"
            title="{f:translate(key:'pagemanager.paging.first')}">
            <i class="material-icons">first_page</i>
          </a>
        </li>
        <li class="waves-effect list-group">
          <a href="{f:uri.action(action: actionName, arguments:{currentPage: paging.previousPageNumber, daysPast: daysPast})}"
            title="{f:translate(key:'pagemanager.paging.prevoius')}">
            <i class="material-icons">chevron_left</i>
          </a>
        </li>
      </f:then>
      <f:else>
        <li class="disabled">
          <a href="#"><i class="material-icons">first_page</i></a>
        </li>
        <li class="disabled">
          <a href="#"><i class="material-icons">chevron_left</i></a>
        </li>
      </f:else>
    </f:if>

    <li><span class="pageNumbers">Seite {paginator.currentPageNumber} von {paging.lastPageNumber} |</span></li>
    <f:for each="{pages}" as="page">
      <li class="{f:if(condition: '{page} == {paginator.currentPageNumber}', then:'active', else: 'waves-effect')}">
        <a class="hide" href="{f:uri.action(action: actionName, arguments:{currentPage: page, daysPast: daysPast})}">{page}</a>
      </li>
    </f:for>

    <f:if condition="{paging.nextPageNumber} && {paging.nextPageNumber} <= {paging.lastPageNumber}">
      <f:then>
        <li class="waves-effect list-group">
          <a href="{f:uri.action(action: actionName, arguments:{currentPage: paging.nextPageNumber, daysPast: daysPast})}"
            title="{f:translate(key:'pagemanager.paging.next')}">
            <i class="material-icons">chevron_right</i>
          </a>
        </li>
        <li class="waves-effect list-group">
          <a href="{f:uri.action(action: actionName, arguments:{currentPage: paging.lastPageNumber, daysPast: daysPast})}"
          title="{f:translate(key:'pagemanager.paging.last')}">
            <i class="material-icons">last_page</i>
          </a>
        </li>
      </f:then>
      <f:else>
        <li class="disabled">
          <a href="#"><i class="material-icons">chevron_right</i></a>
        </li>
        <li class="disabled">
          <a href="#"><i class="material-icons">last_page</i></a>
        </li>
      </f:else>
    </f:if>
  </ul>
</div>
</div>