summaryrefslogtreecommitdiff
path: root/src/jwebmail/templates/_bot_nav.html
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2024-12-09 13:07:42 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2024-12-09 13:07:42 +0100
commit7f9f1d40e806aaf2e0017c0c157b76fb284b049f (patch)
tree522abe138bb4b74d809e79aefe17fb5658296d36 /src/jwebmail/templates/_bot_nav.html
parent4c911f53dc51dacc61f109cbc42b011887ce6c84 (diff)
spit of navigation element into its own file
Diffstat (limited to 'src/jwebmail/templates/_bot_nav.html')
-rw-r--r--src/jwebmail/templates/_bot_nav.html38
1 files changed, 1 insertions, 37 deletions
diff --git a/src/jwebmail/templates/_bot_nav.html b/src/jwebmail/templates/_bot_nav.html
index 03cb939..a1e1b76 100644
--- a/src/jwebmail/templates/_bot_nav.html
+++ b/src/jwebmail/templates/_bot_nav.html
@@ -1,43 +1,7 @@
<div class="columns">
<div class=column>
- <nav class="pagination" role="navigation">
- {% if first %}
- <a class="pagination-previous" disabled>&laquo;</a>
- {% else %}
- <a class="pagination-previous"
- href="{{ url_for(
- 'displayheaders',
- folder=request.view_args.folder,
- page_bound=page_bound_before,
- page_after=0,
- per_page=request.args.get('per_page'),
- sort=request.args.get('sort'),
- search=request.args.get('search'),
- ) }}"
- aria-label="Next">
- &laquo;
- </a>
- {% endif %}
-
- {% if last %}
- <a class="pagination-next" disabled>&raquo;</a>
- {% else %}
- <a class="pagination-next"
- href="{{ url_for(
- 'displayheaders',
- folder=request.view_args.folder,
- page_bound=page_bound_after,
- page_after=1,
- per_page=request.args.get('per_page'),
- sort=request.args.get('sort'),
- search=request.args.get('search'),
- ) }}"
- aria-label="Next">
- &raquo;
- </a>
- {% endif %}
- </nav>
+ {% include '_nav.html' %}
</div>
<div class="column">