{% extends "base.html" %} {% block content %} {% for row in files %} {% endfor %} {% if has_previous %} Previous {% endif %} {% if has_next %} Next page {% endif %} {% if has_previous %} {{page - 1}} {% endif %} {{page}} {% if has_next %} {{page + 1}} {% endif %} {% endblock %}