{# Copyright (C) 2013 The Debsources developers . See the AUTHORS file at the top-level directory of this distribution and at https://salsa.debian.org/qa/debsources/blob/master/AUTHORS License: GNU Affero General Public License, version 3 or above. #} {# copied from templates/macros.inc.html #} {# from https://pythonhosted.org/Flask-SQLAlchemy/api.html#flask.ext.sqlalchemy.Pagination.iter_pages #} {% macro render_pagination(pagination) -%} {%- endmacro %} {% macro searchform(form, request, display="block") -%} {% if request.blueprint == 'doc' %} {% set endpoint = 'sources.recv_search' %} {% else %} {% set endpoint = '.recv_search' %} {% endif %}
{{ form.query(**kwargs) }} {% for error in form.errors.query %} {% if display == "block" %}
{% endif %} {{ error }} {% endfor %} {% if display == "block" %}
{% endif %}
{%- endmacro %} {% macro render_packages_prefixes(prefixes, request) %} {% if request.blueprint == 'doc' %} {% set endpoint = 'sources.prefix' %} {% else %} {% set endpoint = '.prefix' %} {% endif %} {%- for prefix in prefixes %} {{ prefix }} {%- endfor %} {% endmacro %} {% macro listpackages(packages, suite) -%}
{%- endmacro %} {% macro show_suite(suite) %} {%if suite %}

In suite {{ suite }}

{% endif %} {% endmacro %} {% macro show_versions(versions, path, endpoint, folder) %} {% endmacro %} {% macro render_news(news, archived_news) %} {% if news -%}

News {% if archived_news -%} (News archive) {% endif %}

{{ news|safe }} {% endif %} {% endmacro %}