{% 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 %}
Revenir au projet {% if is_granted('IS_AUTHENTICATED_FULLY') %} {% if app.user is same as(task.createdBy) %} Modifier la tâche Supprimer la tâche {% endif %} {% for transition in workflow_transitions(task) %} {% if not workflow_metadata(task, 'locking', task.status) or app.user is same as(task.lockedBy) %} {{ workflow_metadata(task, 'title', transition) }} {% endif %} {% endfor %} {% if workflow_metadata(task, 'locking', task.status) and app.user is same as(task.lockedBy) %}
{% endif %} {% endif %} {% if nextTask %} Tâche suivante {% endif %}

{% 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 {{ project.name }} {{ task.name }} {% for hashtag in project.hashtags|split(' ') %} {{ '#' ~ hashtag }} {% endfor %}
Source {{ 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 not (task.comments is empty or not is_granted('IS_AUTHENTICATED_FULLY')) %}

Commentaires

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