diff options
Diffstat (limited to 'src/jwebmail/templates/_bot_nav.html')
-rw-r--r-- | src/jwebmail/templates/_bot_nav.html | 56 |
1 files changed, 48 insertions, 8 deletions
diff --git a/src/jwebmail/templates/_bot_nav.html b/src/jwebmail/templates/_bot_nav.html index 2634151..bd9e05a 100644 --- a/src/jwebmail/templates/_bot_nav.html +++ b/src/jwebmail/templates/_bot_nav.html @@ -1,7 +1,43 @@ <div class="columns"> - <div class="column"> - {{ pgn.links }} + <div class=column> + <nav class="pagination" role="navigation"> + {% if first %} + <a class="pagination-previous" disabled>«</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"> + « + </a> + {% endif %} + + {% if last %} + <a class="pagination-next" disabled>»</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"> + » + </a> + {% endif %} + </nav> </div> <div class="column"> @@ -9,9 +45,11 @@ {% if mail_folders|length > 1 %} <form action="{{ url_for('move', folder=folder) }}" id="move-mail" class=is-pulled-left method=POST> <input type=hidden name=csrf_token value="{{ csrf_token() }}"> - <input type=hidden name=sort value="{{ request.args['sort'] }}"> - <input type=hidden name=per_page value="{{ request.args['per_page'] }}"> - <input type=hidden name=page value="{{ request.args['page'] }}"> + <input type=hidden name=sort value="{{ request.args.sort }}"> + <input type=hidden name=search value="{{ request.args.search }}"> + <input type=hidden name=per_page value="{{ request.args.per_page }}"> + <input type=hidden name=page_bound value="{{ request.args.page_bound }}"> + <input type=hidden name=after_page value="{{ request.args.after_page }}"> <div class="field has-addons"> <div class=control> <div class=select> @@ -35,9 +73,11 @@ method=POST class="is-pulled-left ml-2"> <input type=hidden name=csrf_token value="{{ csrf_token() }}"> - <input type=hidden name=sort value="{{ request.args['sort'] }}"> - <input type=hidden name=per_page value="{{ request.args['per_page'] }}"> - <input type=hidden name=page value="{{ request.args['page'] }}"> + <input type=hidden name=sort value="{{ request.args.sort }}"> + <input type=hidden name=search value="{{ request.args.search }}"> + <input type=hidden name=per_page value="{{ request.args.per_page }}"> + <input type=hidden name=page_bound value="{{ request.args.page_bound }}"> + <input type=hidden name=after_page value="{{ request.args.after_page }}"> <div class=control> <input id=remove type=submit class=button value="{{ gettext('Remove') }}"> </div> |