{% comment %} Interactive OK/BYE block for a @mailman invite Line — Phase A of the my-sea invite flow ([[my-sea-invite-voice-blueprint]]). Renders entirely from `line.sea_invite.status`; the {% if line.sea_invite %} guard lives in post.html so this partial is only reached for invite Lines. PENDING (not expired) → OK / BYE form buttons (POST accept / decline). ACCEPTED → "Accepted {date}" badge. (VISIT link to the owner's table is added in Phase B once `my_sea_visit` exists.) DECLINED → "Declined" · LEFT → "Left {date}" · else → "Expired". {% endcomment %} {% if line.sea_invite.status == 'PENDING' and not line.sea_invite.is_expired %}
{% csrf_token %}
{% csrf_token %}
{% elif line.sea_invite.status == 'ACCEPTED' %} Accepted {{ line.sea_invite.accepted_at|date:'M j' }} {% elif line.sea_invite.status == 'DECLINED' %} Declined {% elif line.sea_invite.status == 'LEFT' %} Left {{ line.sea_invite.left_at|date:'M j' }} {% else %} Expired {% endif %}