Sha256: 9c6fe3265ae452b63d1c6629ebc66b09cf09fddaf2b72d9c5dfd50701b813d63
Contents?: true
Size: 1.04 KB
Versions: 9
Compression:
Stored size: 1.04 KB
Contents
--- name: Pagination description: Display previous page and/or next page buttons to navigate through paginated pages. variables: paginator: - object - The Bridgetown Paginator object ([see documentation here](https://www.bridgetownrb.com/docs/content/pagination/)) mocks: paginator: total_pages: 3 previous_page: true previous_page_path: "#previous" next_page: true next_page_path: "#next" --- {% if paginator.total_pages > 1 %} <ul class="pagination mt-6"> {% if paginator.previous_page %} <li> <a href="{{ paginator.previous_page_path }}" class="button is-primary is-outlined is-small"><span class="icon"><i class="fa fa-arrow-left"></i></span> <span>Previous Page</span></a> </li> {% else %} <li></li> {% endif %} {% if paginator.next_page %} <li> <a href="{{ paginator.next_page_path }}" class="button is-primary is-outlined is-small"><span>Next Page</span> <span class="icon"><i class="fa fa-arrow-right"></i></span></a> </li> {% endif %} </ul> {% endif %}
Version data entries
9 entries across 9 versions & 1 rubygems