<div class="container-fluid">
    <div class="row">
        <div class="col-xs-12 text-center">
            <ul class="pagination">
                {% if events.pagination.prev_page is defined %}
                    <li>
                        <a href="?page={{ page - 1 }}{% if keyword is defined %}&keyword={{ keyword }}{% endif %}"><i class="fa fa-arrow-circle-o-left"></i> Previous</a>
                    </li>
                {% else %}
                    <li class="disabled">
                        <a href="#"><i class="fa fa-arrow-circle-o-left"></i> Prev<span class="hidden-xs">ious</span></a>
                    </li>
                {% endif %}
                <li class="current hidden-xs"><a href="#">Page {{ page }}</a></li>
                {% if events.pagination.next_page is defined and events.pagination.count >= 10 %}
                    <li>
                        <a href="?page={{ page + 1 }}{% if keyword is defined %}&keyword={{ keyword }}{% endif %}">Next <i class="fa fa-arrow-circle-o-right"></i></a>
                    </li>
                {% else %}
                    <li class="disabled">
                        Next <i class="fa fa-arrow-circle-o-right"></i>
                    </li>
                {% endif %}
            </ul>
        </div>
    </div>
</div>
<div class="container-fluid">
    <div class="row">
        <div class="col-xs-12 text-center">
            <ul class="pagination">
                {% if events.pagination.prev_page is defined %}
                    <li>
                        <a href="?page={{ page - 1 }}{% if keyword is defined %}&keyword={{ keyword }}{% endif %}"><i class="fa fa-arrow-circle-o-left"></i> Previous</a>
                    </li>
                {% else %}
                    <li class="disabled">
                        <a href="#"><i class="fa fa-arrow-circle-o-left"></i> Prev<span class="hidden-xs">ious</span></a>
                    </li>
                {% endif %}
                <li class="current hidden-xs"><a href="#">Page {{ page }}</a></li>
                {% if events.pagination.next_page is defined and events.pagination.count >= 10 %}
                    <li>
                        <a href="?page={{ page + 1 }}{% if keyword is defined %}&keyword={{ keyword }}{% endif %}">Next <i class="fa fa-arrow-circle-o-right"></i></a>
                    </li>
                {% else %}
                    <li class="disabled">
                        <a href="#">Next <i class="fa fa-arrow-circle-o-right"></i></a>
                    </li>
                {% endif %}
            </ul>
        </div>
    </div>
</div>

Fix pager UI when there is no next page
Fix pager UI when there is no next page
