otmp_site/templates/section.html

17 lines
647 B
HTML
Raw Normal View History

2022-12-03 20:01:01 +01:00
{% extends "base.html" %}
{% block header %}
<h2>{{ section.title }}</h2>
2022-12-03 20:01:01 +01:00
{% endblock header %}
{% block content %}
{{ section.content | safe }}
{% if paginator %}
{% set pages = paginator.pages %}
{% else %}
{% set pages = section.pages %}
{% endif %}
{% if paginator %}
<p>{% if paginator.previous %}<a href="{{ paginator.first }}">&lt;&lt; First</a> <a href="{{ paginator.previous }}">&lt; Previous</a>{% endif %} [{{ paginator.current_index }}/{{ paginator.number_pagers }}] {% if paginator.next %}<a href="{{ paginator.next }}">Next &gt;</a> <a href="{{ paginator.last }}">Last &gt;&gt;</a>{% endif %}</p>
{% endif %}
{% endblock content %}