{% set number_of_remaining_texts = (texts.values() | selectattr("is_deleted", "equalto", false) | list | length) %}
{% set number_of_deleted_texts = (texts.values() | selectattr("is_deleted", "equalto", true) | list | length) %}
{% set number_of_texts = (number_of_remaining_texts + number_of_deleted_texts) %}
Number of texts:
{{ number_of_remaining_texts }} texts
info
{% set number_of_MUST_LINK_constraints = (constraints.values() | selectattr("is_hidden", "equalto", false) | selectattr("constraint_type", "equalto", "MUST_LINK") | list | length) %}
{% set number_of_CANNOT_LINK_constraints = (constraints.values() | selectattr("is_hidden", "equalto", false) | selectattr("constraint_type", "equalto", "CANNOT_LINK") | list | length) %}
{% set number_of_SKIP_constraints = (constraints.values() | selectattr("is_hidden", "equalto", false) | selectattr("constraint_type", "equalto", none) | list | length) %}
{% set number_of_constraints = (number_of_MUST_LINK_constraints + number_of_CANNOT_LINK_constraints) %}
{% set number_of_constraints_to_annotate = (constraints.values() | selectattr("is_hidden", "equalto", false) | selectattr("to_annotate", "equalto", true) | list | length) %}
{% set number_of_constraints_to_review = (constraints.values() | selectattr("is_hidden", "equalto", false) | selectattr("to_review", "equalto", true) | list | length) %}
{% set number_of_constraints_to_fix = (constraints.values() | selectattr("is_hidden", "equalto", false) | selectattr("to_fix_conflict", "equalto", true) | list | length) %}
Number of constraints:
{% if number_of_constraints==0 %}
No constraint
{% else %}
{{ number_of_constraints }} constraints
{% endif %}
{% if status.state_details.step == "ANNOTATION" %}
and {{ number_of_constraints_to_annotate }} need your annotation.
{% endif %}
info
{% if status.state_details.step == "ANNOTATION" %}
{% set modelization_disabled = (status.state not in ["ANNOTATION_WITH_OUTDATED_MODELIZATION_WITHOUT_CONFLICTS", "ANNOTATION_WITH_OUTDATED_MODELIZATION_WITH_CONFLICTS"]) %}
Modelization state:
{% if (status.state_details.modelization_status == "TODO") %}
warningModelization is empty.
Please run modelization update.
{% elif (status.state_details.modelization_status == "UPTODATE") %}
done_allModelization is up to date.
Any modification will lead to an outdated modelization.
{% elif (status.state_details.modelization_status == "OUTDATED") %}
warningModelization is outdated{% if status.state_details.conflict_status == "TRUE" %} with some conflits{% endif %}.
Please run modelization update after your modifications to check project consistency and constraints conflicts.
{% elif (status.state_details.modelization_status in ["PENDING", "WORKING"]) %}
updateModelization update is in progress.
Page will reload in a few moments.
{% else %}
errorAn unexpected modelization error occurred.
Please check your project.
{% endif %}
{% endif %}
{% if status.state_details.step == "SAMPLING" %}
Please finish sampling step to be able to perform modification.
{% elif status.state_details.step == "ANNOTATION" %}
{% set has_conflicts = (status.state_details.conflict_status == "TRUE") %}
{% if has_conflicts %}
Please run modelization update to check project consistency and constraints conflicts.
{% endif %}
{% else %}
Annotation step is finished and constraints have been approved.
{% endif %}
List of texts
{% set modification_disabled = (status.state not in ["ANNOTATION_WITH_UPTODATE_MODELIZATION", "ANNOTATION_WITH_OUTDATED_MODELIZATION_WITHOUT_CONFLICTS", "ANNOTATION_WITH_OUTDATED_MODELIZATION_WITH_CONFLICTS"]) %}