<f:if condition="{pagination.lastPageNumber}>1">
  <ul class="f3-widget-paginator">
    <f:if condition="{pagination.previousPageNumber} && {pagination.previousPageNumber} >= {pagination.firstPageNumber}">
      <li class="previous">
        <a href="{f:uri.action(action:actionName, arguments:{currentPage: pagination.previousPageNumber,search: search})}" title="{f:translate(key:'pagination.previous')}">
          {f:translate(key:'widget.pagination.previous', extensionName: 'fluid')}
        </a>
      </li>
    </f:if>
    <f:if condition="{pagination.displayRangeStart}>1">
      <li class="first">
        <a href="{f:uri.action(action:actionName, arguments:{currentPage: 1,search: search})}" title="{f:translate(key:'pagination.first')}">{pagination.firstPageNumber}</a>
      </li>
    </f:if>
    <f:if condition="{pagination.hasLessPages}">
      <li class="hasLess"><span class="paginator-item">…</span></li>
    </f:if>
    <f:for each="{pagination.allPageNumbers}" as="page">
      <f:if condition="{page} == {paginator.currentPageNumber}">
        <f:then>
          <li class="current">
            <span class="paginator-item">{page}</span>
          </li>
        </f:then>
        <f:else>
          <li>
            <a href="{f:uri.action(action:actionName, arguments:{currentPage: page,search: search})}">{page}</a>
          </li>
        </f:else>
      </f:if>
    </f:for>
    <f:if condition="{pagination.hasMorePages}">
      <li class="hasMore"><span class="paginator-item">…</span></li>
    </f:if>
    <f:if condition="{pagination.displayRangeEnd}<{pagination.lastPageNumber}">
      <li class="last">
        <a href="{f:uri.action(action:actionName, arguments:{currentPage: pagination.lastPageNumber,search: search})}" title="{f:translate(key:'pagination.last')}">{pagination.lastPageNumber}</a>
      </li>
    </f:if>
    <f:if condition="{pagination.nextPageNumber} && {pagination.nextPageNumber} <= {pagination.lastPageNumber}">
      <li class="next">
        <a href="{f:uri.action(action:actionName, arguments:{currentPage: pagination.nextPageNumber,search: search})}" title="{f:translate(key:'pagination.next')}">
          {f:translate(key:'widget.pagination.next', extensionName: 'fluid')}
        </a>
      </li>
    </f:if>
  </ul>
</f:if>
