{# * Copyright (C) 2014, Champs Libres Cooperative SCRLFS, * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . #} {% extends "@ChillPerson/layout.html.twig" %} {% set activeRouteKey = 'chill_task_single_task_show' %} {% set person = task.person %} {% block title %}{{ 'Task'|trans }}{% endblock %} {% block personcontent %}

{{ 'Task'|trans }}

{{ task.title }} {% for place in workflow_marked_places(task) %} {{ place|trans }} {% endfor %}

{{ 'Description'|trans }}
{% if task.description is empty %} {{"No description"|trans}} {% else %}
{{ task.description|chill_markdown_to_html }}
{% endif %}
{{ 'Assignee'|trans }}
{% if task.assignee is null %} {{"No one assignee"|trans}} {% else %} {{ task.assignee }} {% endif %}
{{ 'Scope'|trans }}
{{ task.scope.name|localize_translatable_string }}

{{"Dates"|trans}}

{% if task.startDate is null and task.endDate is null and task.warningDate is null %}
{{"No dates specified"|trans}}
{% else %} {% if task.startDate is not null %}
{{ 'Start'|trans }}
{{ task.startDate|format_date('long') }}
{% endif %} {% if task.endDate is not null %}
{{ 'End'|trans }}
{{ task.endDate|format_date('long') }}
{% endif %} {% if task.warningDate is not null %}
{{ 'Warning'|trans }}
{{ task.warningDate|format_date('long') }}
{% endif %} {% endif %}
{% if timeline is not null %}

{{"Timeline"|trans}}

{{ timeline|raw }} {% endif %} {% endblock %}