File: pagination.html

package info (click to toggle)
bootstrap-flask 2.2.0%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 25,396 kB
  • sloc: python: 2,218; makefile: 24
file content (15 lines) | stat: -rw-r--r-- 609 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{% extends 'base.html' %}
{% from 'bootstrap5/pagination.html' import render_pager, render_pagination %}

{% block content %}
    <h2>Messages</h2>
    {% for message in messages %}
        Message: {{ message.id }}<br>
    {% endfor %}
    <h2>Render a simple pagination component with render_pager</h2>
    <pre>{% raw %}{{ render_pager(pagination) }}{% endraw %}</pre>
    {{ render_pager(pagination) }}
    <h2>Render a standard pagination component with render_pagination</h2>
    <pre>{% raw %}{{ render_pagination(pagination) }}{% endraw %}</pre>
    {{ render_pagination(pagination) }}
{% endblock %}