{% load humanize i18n tz dg_board dg_core %} {# A ticket in brief, in the panel beside the board or a ticket page (peek.js); everything is changed on its page. #}
{{ ticket.key }} {{ ticket.column.group }} / {{ ticket.column }} {% translate "Open ticket" %}

{{ ticket.title }}

{% if ticket.is_blocked %}
{% translate "Blocked" %}
{% endif %} {% for blocker in open_blockers %}
{% translate "Blocked by" %} {{ blocker.key }} {{ blocker.title }}
{% endfor %}
{% translate "Assignee" %}{% avatar ticket.assignee 'xs' %} {% translate 'Unassigned' as unassigned %}{{ ticket.assignee|person:unassigned }}
{% translate "Size" %}{% translate 'Not estimated' as not_estimated %}{{ ticket.get_size_display|default:not_estimated }}
{% if labels %}
{% translate "Labels" %}{% for label in labels %}{{ label }}{% endfor %}
{% endif %}
{% translate "Creator" %}{% avatar ticket.creator 'xs' %} {{ ticket.creator|person }}, {{ ticket.created_at|naturaltime }}
{% if ticket.closed_at %}
{% translate "Closed" %}{{ ticket.closed_at|naturaltime }}
{% endif %}
{% if ticket.description %}{{ ticket.description|render_markdown }}{% else %}

{% translate "No description yet." %}

{% endif %}
{% if relations %}

{% translate "Relations" %}

{% regroup relations by kind as kinds %} {% for kind in kinds %}
{{ kind.grouper|capfirst }}
{% for item in kind.list %} {% with other=item.other %}
{{ other.key }} {{ other.title }}
{% endwith %} {% endfor %} {% endfor %} {% endif %}

{% translate "Comments" %}

{% for comment in comments %}
{% avatar comment.author 'xs' %} {{ comment.author|person }} {% if comment.sets_blocked is True %} {% translate "blocked the ticket" %}{% elif comment.sets_blocked is False %} {% translate "unblocked the ticket" %}{% endif %} {{ comment.created_at|naturaltime }}
{% if comment.body %}
{{ comment.body|render_markdown }}
{% endif %}
{% empty %}

{% translate "No comments yet." %}

{% endfor %} {% if comment_count > comments|length %} {% blocktranslate count count=comment_count %}The comment on the ticket page{% plural %}All {{ count }} comments on the ticket page{% endblocktranslate %} {% endif %}