{% comment %} FSM History Detail Content Partial Template Content for the history detail modal, loaded via HTMX. Required context: - log: StateLog object with transition details {% endcomment %} {% if log %}
Log ID
  #{{ log.id }}
Timestamp
  {{ log.timestamp|date:"M d, Y H:i:s" }}
Model Type
  {{ log.content_type.model|title }}
Object ID
  #{{ log.object_id }}
Transition
  {{ log.transition|default:"—" }}
State Transition
  {% with from_state=log.source_state %} {{ from_state|default:"—" }} {% endwith %} {% with to_state=log.state %} {{ to_state|default:"—" }} {% endwith %}
Performed By
  {{ log.by.username|default:"System" }} {% if log.by %} (ID: {{ log.by.id }}) {% endif %}
{% if log.description %}
Description/Reason
  {{ log.description }}
{% endif %}
{% else %}

### Details not found

Unable to load transition details.

{% endif %}