File: pagination.html

package info (click to toggle)
bootstrap-flask 2.4.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 28,784 kB
  • sloc: python: 2,334; makefile: 30
file content (17 lines) | stat: -rw-r--r-- 571 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{% extends 'base.html' %}
{% from 'bootstrap4/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 %}