{% macro render_pagination(pagination, endpoint) %}
  <div class="container-fluid"> Página: 
  {% if pagination.has_prev %}
   <a href="{{ url_for(endpoint, page=pagination.page-1)}}">Anterior</a>
  {% endif %}
  
  {% for page in pagination.iter_pages() %}
    {% if page %}
      {% if page != pagination.page %}
        <a class="btn btn-secondary btn-sm btn-outline-info" href="{{ url_for(endpoint, page=page) }}">{{ page }}</a>
      {% else %}
        <strong>{{ page }}</strong>
      {% endif %}
    {% else %}
      <span class=ellipsis>…</span>
    {% endif %}	
  {% endfor %}
  
  {% if pagination.has_next %}
   <a href="{{ url_for(endpoint, page=pagination.page+1)}}">Siguiente</a>
  {% endif %}
  </div>
{% endmacro %}