{% if prev %}
<a class="btn btn-default" href="{{ prev.link|e }}">Prev Page</a>
{% else %}
<button type="button" class="btn btn-default disabled">Prev Page</button>
{% if prev %}
<a class="btn btn-default" href="{{ prev.link|e }}">Prev Page</a>
{% else %}
<button type="button" class="btn btn-default disabled">Prev Page</button>