{% macro category_table(cat_list, current_repository, state_list=["mixed"], target="", interactive=True, with_colors=True) -%} {% for cat in cat_list %} {% if state_list == ["mixed"] or (cat.state in state_list) %} {{ cat.cat_label }} {{ cat.cat_description}} {% if interactive %} {% if (cat.state != "deleted") %} {% endif %} {% if (cat.state == "untouched") or (cat.state == "original") %} {% elif (cat.state == "created" or cat.state == "modified") %} {% else %}
{% endif %} {% endif %}
{% if cat.cat_properties|length == 0 %}
Aucune autre propriété
{% else %} {% for (predicate, object) in cat.cat_properties %}
{{ config["PROPERTY_LIST"][predicate]["descriptive_label_fr"] }}
{% if config["PROPERTY_LIST"][predicate]["object_type"]=="uriref-category" %} {% for cat in cat_list %} {% if object == config["CATEGORY_NAMESPACE"]+cat.cat_id %} {{ cat.cat_label }} {% endif %} {% endfor %} {% elif config["PROPERTY_LIST"][predicate]["object_type"]=="uriref-link" %} {{ object }} {% else %} {{ object }} {% endif %}
{% endfor %} {% endif %}
{% if interactive %} {% if cat.state != "deleted" %}
{% endif %} {% endif %} {% endif %} {% endfor %} {%- endmacro %} {% macro render_pagination(pagination, per_page, page_arg_name="page", per_page_arg_name="per_page") -%} {% if pagination %} {% endif %}
{%- endmacro %}