{% extends "base.html" %} {% block title %}{{ item.local_id }} {{ item.title }} — IssueDeck{% endblock %} {% block content %}
{# ── Header section ── #}
{# Back button #} {{ t("common.back_to_list") }} {# Title row #}
{{ item.local_id }}

{{ item.title }}

{# Action buttons #}
{{ t("common.edit") }} {% if item.deleted_at %} {% else %} {% endif %}
{# Deleted banner #} {% if item.deleted_at %}
{{ t("common.deleted") }}
{% endif %}
{# ── Metadata grid ── #} {% set kc = kind_color(item.kind) %} {% set sc = status_color(item.status) %}
{# Kind #}
{{ t("common.kind") }} {{ kind_label(item.kind, project) }}
{# Status #}
{{ t("common.status") }} {{ status_label(item.status, project) }}
{# Tags #}
{{ t("common.tags") }}
{% if item.tags %} {% for tag in item.tags %} {{ tag }} {% endfor %} {% else %} {{ t("common.no") }} {% endif %}
{# Branches #}
{{ t("common.branches") }}
{% if item.applies_to %} {% for branch in item.applies_to %} {{ branch }} {% endfor %} {% else %} {{ t("common.no") }} {% endif %}
{# Created time #}
{{ t("common.created_at") }} {{ item.created_at[:16] | replace('T', ' ') }}
{# Updated time #}
{{ t("common.updated_at") }} {{ item.updated_at[:16] | replace('T', ' ') }}
{# External links section #} {% if item.external_links %}

{{ t("external_links.title") }}

{% endif %} {# ── Body section ── #}

{{ t("common.content") }}

{% if item.body %} {# Hidden template holding raw markdown #}
{% else %}

{{ t("common.empty_body") }}

{% endif %}
{# ── Activity timeline section ── #}

{{ t("activity.title") }}

{{ item.events | length }} {{ t("activity.count_suffix") }}
{% if not item.deleted_at %}
{% endif %} {% if item.events %}
    {% for event in item.events %}
  1. {{ event.actor_name }} {{ event.event_type | replace('_', ' ') }} {{ event.actor_type }}

    {{ event.body }}

  2. {% endfor %}
{% else %}

{{ t("activity.empty") }}

{% endif %}
{# ── Ship records section ── #} {% if item.ship_records %}

{{ t("ship.records") }}

{% for record in item.ship_records %} {% endfor %}
{{ t("common.branch") }} {{ t("common.version") }} {{ t("ship.shipped_at") }} Commits
{{ record.branch_key }} {{ record.version }} {{ record.shipped_at[:16] | replace('T', ' ') }}
{% for sha in record.commits %} {{ sha[:7] }} {% endfor %}
{% endif %} {# ── Relationships section ── #}

{{ t("relationship.title") }}

{# Existing relationships #} {% if item.relationships %}
    {% for rel in item.relationships %}
  • {{ relation_labels.get(rel.relation_type, rel.relation_type) }} {{ rel.to_local_id }}
  • {% endfor %}
{% else %}

{{ t("relationship.empty") }}

{% endif %} {# Add relationship form #}

{{ t("relationship.add") }}

{# ── Ship modal (Alpine.js) ── #} {# Backdrop #}
{# Modal panel #}
{# Modal header #}

{{ t("ship.modal_title") }}

{# Modal body #}
{# Branch select #}
{# Version input #}
{# Commits textarea #}

{{ t("ship.commits_help") }}

{# Actions #}
{% endblock %} {% block scripts %} {% endblock %}