{% comment %} An issue's comments and events, plus the comment form. Needs `issue`, `thread`, `timeline`, `project`, `access`, `focus`, `error`, `draft`. This whole element is what HTMX swaps. {% endcomment %}
{% if timeline %}
    {% for kind, item in timeline %}
  1. {% if kind == "comment" %} {% include "comments/_comment.html" with c=item %} {% else %} {% include "issues/_event.html" with e=item %} {% endif %}
  2. {% endfor %}
{% else %}

No comments yet.

{% endif %} {% if error %}

Error: {{ error }}

{% endif %} {% if access.can_contribute %} {% url 'comments:reply' org_slug=project.org.slug project_slug=project.slug thread_id=thread.pk as reply_url %}
{% csrf_token %}

Markdown.

{% elif not user.is_authenticated and project.open_contribution %}

Sign in to join the discussion.

{% endif %}