|
|
@ -29,11 +29,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
{% block pagination %}
|
|
|
|
{% block pagination %}
|
|
|
|
{% if pages|default(0) > 1 %}
|
|
|
|
{% if pages|default(0) > 1 %}
|
|
|
|
<div class="col-md-12 text-center">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<ul class="pagination">
|
|
|
|
<ul class="pagination justify-content-center">
|
|
|
|
{% for p in range(1, pages) %}
|
|
|
|
{% for p in range(1, pages) %}
|
|
|
|
<li{% if p == page %} class="active"{% endif %}>
|
|
|
|
<li class="page-item{% if p == page %} active{% endif %}">
|
|
|
|
<a href="{{ url('news', p == 1 ? {} : {'page': p}) }}">{{ p }}</a>
|
|
|
|
<a class="page-link" href="{{ url('news', p == 1 ? {} : {'page': p}) }}">{{ p }}</a>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|