{% extends 'base.html.twig' %} {% import 'macro.html.twig' as macro %} {% block breadcrumb %} {% endblock %} {% block page_title %} {% include 'partials/_task-title.html.twig' %} {% endblock %} {% block page_content %}

{% include 'partials/_task-metadata.html.twig' %} {% include 'partials/_task-locking.html.twig' %}

{% if task.description is not empty %}

Description

{{ task.description|markdown_to_html }}
{% endif %} {% if task.status == 'doing' %}
Commentaire {{ macro.clipboard(sourceGenerator.generate(task)) }}
Source {{ macro.clipboard(project.source) }}
{% endif %} {% if task.status == 'done' and task.changesetsResult is not empty %}
{% set changesets = task.changesetsResult|json_decode %} {% for changeset in changesets %} {% set collapseId = 'collapse' ~ loop.index %}

Voir sur OSM ou OSMCha

{% for key, value in changeset %} {% endfor %}
{{ key }} {{ value }}
{% endfor %}
{% endif %}

Carte

{{ macro.map(task, task.project.overpassResult) }}
{% if task.comments is not empty %}

Commentaires {{ task.comments|length }}

{% endif %} {% if task.comments is not empty %}
{% for comment in task.comments %}
{{ comment.content|markdown_to_html }}
{% endfor %}
{% endif %} {% if task.comments is not empty %}
{% endif %} {% if is_granted('IS_AUTHENTICATED_FULLY') %}
{{ form(commentForm) }}
{% endif %} {% endblock %}