{# This file was part of Flask-Bootstrap and was modified under the terms of its BSD License. Copyright (c) 2013, Marc Brinkmann. All rights reserved. #} {# This file was part of Bootstrap-Flask and was modified under the terms of its MIT License. Copyright (c) 2018 Grey Li. All rights reserved.#} {% from 'fomantic/utils.html' import arg_url_for %} {% macro render_ui_pager(pagination, fragment='', prev='left chevron', next='right chevron', extra_classes=None, color_active_item=None) -%} {%- endmacro %} {% macro render_ui_pagination(pagination, endpoint=None, prev='left chevron', next='right chevron', ellipses='…', args={}, fragment='', extra_classes=None, color_active_item=None )-%} {% if fragment != '' and not fragment.startswith('#') %} {% set fragment = '#' + fragment %} {% endif %} {% with url_args = {} %} {%- do url_args.update(request.view_args if not endpoint else {}), url_args.update(request.args if not endpoint else {}), url_args.update(args) -%} {% with endpoint = endpoint or request.endpoint %} {% endwith %} {% endmacro %}