{% extends "layout.html" %} {% block title %} {{ ticket.ref() }}: {{ ticket.title }} — {{ cfg("sr.ht", "site-name") }} todo {% endblock %} {% block body %}

{{ tracker.owner }}/{{ tracker.name }}#{{ ticket.scoped_id }}: 
{{ticket.title}}

{% if not tracker_sub %}
{{csrf_token()}} {% else %}
{% endif %} {% if not tracker_sub %} {% else %}
{% endif %}
{% if ticket.description %}
{{ ticket|render_ticket_description }}
{% endif %}
Status
{{ ticket.status.name.upper() }} {% if ticket.status == TicketStatus.RESOLVED %} {{ ticket.resolution.name.upper() }} {% endif %}
Submitter
{{ ticket.submitter }} {% if ticket.authenticity == Authenticity.UNAUTHENTICATED %} (unverified) {% elif ticket.authenticity == Authenticity.TAMPERED %} (edited) {% endif %}
Assigned to
{% for assignee in ticket.assigned_users %}
{% if TicketAccess.TRIAGE in access %}
{{ csrf_token() }}
{% endif %}
{% endfor %} {% if TicketAccess.TRIAGE in access %}
Assign someone
{{ csrf_token() }}
{% for u in recent_users %} {{valid.summary("username")}}
{% endif %} {% if TicketAccess.TRIAGE not in access and not ticket.assigned_users %} No-one {% endif %}
Submitted
{{ ticket.created | date }}
Updated
{{ ticket.updated | date }}
Labels
{% for label in ticket.labels %} {% if TicketAccess.TRIAGE in access %} {{ label|label_badge(remove_from_ticket=ticket) }} {% else %} {{ label|label_badge }} {% endif %} {% else %} {% if TicketAccess.TRIAGE in access and tracker.labels|count == 0 %} No labels defined. {% if current_user and current_user.id == tracker.owner_id %} Create one {{icon('caret-right')}} {% endif %} {% else %} No labels applied. {% endif %} {% endfor %}
{% if TicketAccess.TRIAGE in access and tracker.labels|count > ticket.labels|count %}
{{csrf_token()}} {{ valid.summary('label_id') }}
{% endif %}
{% for event in events %} {% if event.event_type not in [ EventType.CREATED, EventType.USER_MENTIONED, ] %}

{% if event.event_type not in [ EventType.ASSIGNED_USER, EventType.UNASSIGNED_USER, EventType.TICKET_MENTIONED, ] %} {{ event.participant }} {% if EventType.COMMENT in event.event_type %} {% if event.comment.authenticity == Authenticity.UNAUTHENTICATED %} (unverified) {% elif event.comment.authenticity == Authenticity.TAMPERED %} (edited) {% endif %} {% endif %} {% endif %} {% if EventType.STATUS_CHANGE in event.event_type %} {% if event.old_status == TicketStatus.RESOLVED %} {{ event.old_resolution.name.upper() }} {% else %} {{ event.old_status.name.upper() }} {% endif %} {{icon("arrow-right", cls="sm")}} {% if event.new_status == TicketStatus.RESOLVED %} {{ event.new_resolution.name.upper() }} {% else %} {{ event.new_status.name.upper() }} {% endif %} {% endif %} {% if EventType.LABEL_ADDED in event.event_type %} added {{ event.label|label_badge(cls="small") }} {% endif %} {% if EventType.LABEL_REMOVED in event.event_type %} removed {{ event.label|label_badge(cls="small") }} {% endif %} {% if EventType.ASSIGNED_USER in event.event_type %} {{event.by_participant}} assigned {{event.participant}} {% endif %} {% if EventType.UNASSIGNED_USER in event.event_type %} {{event.by_participant}} unassigned {{event.participant}} {% endif %} {% if EventType.TICKET_MENTIONED in event.event_type %} {{ event.by_participant }} {% set relation = event.from_ticket %} {% if relation.status == TicketStatus.RESOLVED and relation.resolution == TicketResolution.DUPLICATE %} closed duplicate ticket {% else %} referenced this from {% endif %} {% if relation.status == TicketStatus.RESOLVED %} {% endif %} {{relation.ref(short=relation.tracker_id == ticket.tracker_id) -}} {%- if relation.status == TicketStatus.RESOLVED -%} {% endif %} {% endif %} {{ event.created | date }} {%- if EventType.COMMENT in event.event_type and event.comment.superceedes -%} * {% endif %} {% if EventType.COMMENT in event.event_type and (TicketAccess.TRIAGE in access or event.comment.submitter.user == current_user) %} ยท edit {% endif %}

{% if EventType.COMMENT in event.event_type %}
{% set comment = event.comment %} {{ comment | render_comment }}
{% endif %}
{% endif %} {% endfor %} {% if rendered_preview %}
Comment preview {{ current_user }}
{{ rendered_preview }}
{% endif %} {% if TicketAccess.COMMENT in access %} {% if current_user %}
{{csrf_token()}}
{{valid.summary("comment")}}
{% if TicketAccess.TRIAGE in access %} {% if ticket.status != TicketStatus.RESOLVED %} {% else %} {% endif %} {% endif %}
{% elif cfg("todo.sr.ht::mail", "posting-domain") %} Register here {{icon('caret-right')}} or Log in {{icon('caret-right')}} to comment, or comment via email. {% endif %} {% else %} {% if not ticket.comments %}

It's a bit quiet in here.

{% endif %} {% endif %}
{% endblock %} {% block scripts %} {% endblock %}