Skip to content

Commit a3fe548

Browse files
authored
Merge pull request creativecommons#350 from creativecommons/update_pagination
Add previous and next to pagination.
2 parents 8990207 + 01582ec commit a3fe548

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{% macro render_pagination(pagination) %}
22
<nav class="pagination" role="navigation" aria-label="pagination">
33
<ul class="pagination-list">
4-
<!-- {% if pagination.has_prev %}
5-
<li class="page-item"><a class="page-link" href="{{ pagination.prev|url }}">Previous</a></li>
6-
{% else %}
7-
<li class="page-item disabled"><a class="page-link">Previous</a></li>
8-
{% endif %} -->
4+
{% if pagination.has_prev %}
5+
<li class="inactive">
6+
<a class="pagination-link inactive-link" href="{{ pagination.prev|url }}" aria-label="Goto previous"><i class="icon chevron-left"></i></a>
7+
</li>
8+
{% endif %}
99
{% for p in range(pagination.pages) %}
1010
{% if pagination.current|url == pagination.for_page(p+1)|url %}
1111
<li class="common">
@@ -17,11 +17,11 @@
1717
</li>
1818
{% endif %}
1919
{% endfor %}
20-
<!-- {% if pagination.has_next %}
21-
<li class="page-item"><a class="page-link" href="{{ pagination.next|url }}">Next</a></li>
22-
{% else %}
23-
<li class="page-item disabled"><a class="page-link">Next</a></li>
24-
{% endif %} -->
20+
{% if pagination.has_next %}
21+
<li class="inactive">
22+
<a class="pagination-link inactive-link" href="{{ pagination.next|url }}" aria-label="Goto next"><i class="icon chevron-right"></i></a>
23+
</li>
24+
{% endif %}
2525
</ul>
2626
</nav>
2727
{% endmacro %}

0 commit comments

Comments
 (0)