{% comment %} Client approval card (design "ClientCard"). Context: post (+ post.visible_comments = external/team comments), workspace. Pending posts get approve/request-changes/reject; already-approved posts get "Put on hold"; held posts show their state. {% endcomment %} {% load tz approval_extras %}
{% for pp in post.platform_posts.all %} {{ pp.social_account.get_platform_display }} {% endfor %} {% if post.client_pending %}{% status_badge 'pending_client' %}{% elif post.client_on_hold %}{% status_badge 'on_hold' %}{% elif post.client_approved %}{% status_badge 'approved' %}{% endif %} {% if post.scheduled_at %} {% timezone workspace.effective_timezone|default:"UTC" %}{{ post.scheduled_at|date:"M j, Y \a\t g:i A" }}{% endtimezone %} {% elif post.proposed_publish_at %} Proposed {% timezone workspace.effective_timezone|default:"UTC" %}{{ post.proposed_publish_at|date:"M j, Y" }}{% endtimezone %} {% endif %}

{{ post.caption }}

{% if post.media_attachments.all %}
{% for pm in post.media_attachments.all %} {% if pm.media_asset.thumbnail %} {% elif pm.media_asset.file and pm.media_asset.media_type == 'image' %} {% else %}
{% endif %} {% endfor %}
{% endif %}
{{ post.author.display_name|default:"?"|make_list|first|upper }} by {{ post.author.display_name|default:"Unknown" }} · {{ workspace.name }}
{% if post.visible_comments %}

From the team

{% for c in post.visible_comments %}
{{ c.author.display_name|default:"?"|make_list|first|upper }}
{{ c.author.display_name|default:"Team" }}

{{ c.body }}

{% endfor %}
{% endif %}
{% if post.client_pending %} {% elif post.client_on_hold %} On hold — the team has been notified. {% elif post.client_approved %} You approved this. Scheduled to publish {% endif %}
{% if post.client_pending or post.client_approved %}
{% endif %}