{% macro category_table(cat_list, current_repository, state_list=["mixed"], redirect_target="categories.workshop", interactive=True, with_colors=True, buttons_id="") -%} {% 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 %}
{{ get_property_list()[current_repository][predicate.toPython()]["descriptive_label_fr"] }}
{% if get_property_list()[current_repository][predicate.toPython()]["object_type"]=="uriref-category" %} {% for cat in cat_list %} {% if object == config["CATEGORY_NAMESPACE"][cat.cat_id] %} {{ cat.cat_label }} {% endif %} {% endfor %} {% elif get_property_list()[current_repository][predicate.toPython()]["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 %}