rol if there are previous/next page -->
{% if page > 0 or not last_page %}

  <div class="row">
    <div class="col">
      <nav aria-label="Alias navigation">
        <ul class="pagination">
          <li class="page-item mr-1">
            <a class="btn btn-outline-primary {% if page == 0 %}disabled{% endif %}" href="{{ url_for('dashboard.index', page=page-1, query=query, sort=sort, filter=filter) }}">
              Previous
            </a>
          </li>
          <li class="page-item">
            <a 