{% extends 'base.html.twig' %} {% import 'macro.html.twig' as macro %} {% block breadcrumb %} {% endblock %} {% block page_title %} {{ project.name }} {% for tag in project.tags %} {{ tag.name }} {% endfor %} {% endblock %} {% block page_content %}

{% include 'partials/_project-metadata.html.twig' %}
{% if project.hashtags is not empty %} {% for hashtag in project.hashtags|split(' ') %} {{ '#' ~ hashtag }} {% endfor %} {% endif %}

{% if project.description is not empty %}
{{ project.description|markdown_to_html }}
{% endif %} {% if project.tasks is not empty %}

Carte

{{ macro.map(project, project.overpassResult ? project.overpassResult : '') }}
{% endif %} {% if project.tasks is not empty %} {% set dummy = tasks.setParam('_fragment', 'tasks') %}

Tâches

{% set stats = taskLifecycleManager.getProjectStats(project) %} {% for place, data in stats %}
{{ data.percentage|format_number({fraction_digit: 0}) ~ '%' }}
{% endfor %}
{% for task in tasks %} {% endfor %}
{{ macro.paginated(tasks, 'Nom', 't.name') }} {{ macro.paginated(tasks, 'État', 't.status') }} {{ macro.paginated(tasks, 'Importance', 't.important') }} {{ macro.paginated(tasks, 'Urgence', 't.urgent') }}
{{ task.name }} {{ workflow_metadata(task, 'title', task.status) }} {{ task.important }} {{ task.urgent }}
{{ knp_pagination_render(tasks) }} {% endif %} {% if comments is not empty %}

Commentaires {{ comments|length }}

{% for comment in comments %}
{{ comment.content|markdown_to_html }}
{% endfor %}
{% endif %} {% endblock %} {% block modals %} {{ form_start(csv_form) }} {{ form_end(csv_form) }} {% endblock %}