{% extends "base.html" %}

{% block title %}List{% endblock %}

{% block content %}
<h2 class="text-bfobOrange font-bnto text-2xl">quote list</h2>

<div class="border-b border-bfobGray">
    {% if page.has_previous %}<a href="?page={{ page.previous_page_number }}">prev</a>{% endif %}
    {% if page.has_next %}{% if page.has_previous %} | {% endif %}<a href="?page={{ page.next_page_number }}">next</a>{% endif %}
</div>

{% comment %}{% include "quotedb/_quote.html" %}{% endcomment %}
{% for quote in page %}
<div class="border-b border-bfobGray">
    {% include "quotedb/_quote.html" %}
</div>
{% endfor %}

<div>
    {% if page.has_previous %}<a href="?page={{ page.previous_page_number }}">prev</a>{% endif %}
    {% if page.has_next %}{% if page.has_previous %} | {% endif %}<a href="?page={{ page.next_page_number }}">next</a>{% endif %}
</div>
{% endblock %}