{# Task discussion page # Copyright (C) 2021 Nguyễn Gia Phong # # This file is part of Acanban. # # Acanban 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. # # Acanban 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 div. # # You should have received a copy of the GNU Affero General Public License # along with Acanban. If not, see . #} {% macro render_comment(comment, istask=false) -%}
{{ comment.creator|userlink|safe }} • {{ comment.created_on|naturaltime|safe }} • {% set id = comment.created_on.timestamp() %}
{{ (comment.description if istask else comment.content) | markdown | safe }}
{%- endmacro %} {% extends 'base.html' %} {% block title %}{{ task.name }}{% endblock %} {% block content %}

Project: {{ project.name }}
Assignee: {{ task.assigned_to|userlink|safe }}
Deadline: {{ task.deadline|naturaltime|safe }}
Status: {{ task.status }}

{{ render_comment(task, istask=true) }}
{%- for comment in task.replies recursive %} {{ render_comment(comment) }} {%- if comment.replies -%}
{{ loop(comment.replies) }}
{%- endif %} {%- endfor %}
{% endblock%}