{% if render_tab_counts_oob %}{% include "calendar/partials/_tab_counts_oob.html" %}{% endif %} {% comment %} Sent tab partial for the Publish page. Shows all published/partially_published platform posts. Loaded via HTMX into #tab-content. {% endcomment %}
{% if platform_posts %} {% for pp in platform_posts %} {% endfor %}
Media Status Published Caption Platform Author
{# published rows are protected — every bulk action skips them, so no checkbox. `failed` rows stay selectable (retry / delete). #} {% if pp.is_bulk_selectable %}{% include "calendar/partials/_select_checkbox.html" with pp_id=pp.id extra_class="row-select-box" %}{% endif %} {% with first_att=pp.post.media_attachments.all.0 %} {% if first_att %}
{% if first_att.media_asset.thumbnail %} {% elif first_att.media_asset.media_type == 'image' or first_att.media_asset.media_type == 'gif' %} {% else %} {% endif %} {% if first_att.media_asset.media_type == 'video' %}
{% endif %} {% if pp.post.media_attachments.count > 1 %}
+{{ pp.post.media_attachments.count|add:"-1" }}
{% endif %}
{% else %}
{% endif %} {% endwith %}
{{ pp.get_status_display }} {% if pp.status == "failed" and pp.publish_error %}

{{ pp.publish_error }}

{% endif %} {% comment %} Published, but its first comment never landed — amber, not red: the post itself went out fine. {% endcomment %} {% if pp.first_comment_status == "failed" %}

First comment failed

{% endif %}
{% if pp.post.scheduled_at %} {{ pp.post.scheduled_at|date:"M d, Y" }}
{{ pp.post.scheduled_at|date:"H:i" }} {% else %} - {% endif %}
{{ pp.post.title|default:pp.post.caption_snippet|default:"(no caption)" }}
{% include "partials/_platform_icon.html" with platform=pp.social_account.platform size="sm" %} {{ pp.social_account.account_name|default:pp.social_account.account_handle }}
{{ pp.post.author.display_name|default:"-" }}
{% else %} {% if not has_connected_accounts %} {% include "calendar/partials/_no_channels_empty_state.html" %} {% else %}

No sent posts yet

Published posts will appear here after they go live

{% endif %} {% endif %}