{% load i18n %} {% load tz %} {% load stelatags %} {% load humanize %} {% for post in newposts %}

{{instagram.title}}

{% if post.schedule %}

{% trans "Post date:" %} {{ post.schedule|timezone:usertz|date:"d/m/Y" }} {% trans "at" %} {{ post.schedule|timezone:usertz|date:"h:i A" }}

{% endif %}
{% if post.mediatype == 'CAROUSEL' %} {% else %} {% for obj in post.igitem.all %} {% if forloop.counter == 1 %} {% if obj.mp4 %} {% else %} {% endif %} {% endif %} {% endfor %} {% endif %}
{% if post.mediatype == "POST" %}

{% trans "Media type" %}: {% trans "POST" %}

{% elif post.mediatype == "CAROUSEL" %}

{% trans "Media type" %}: {% trans "CAROUSEL" %}

{% elif post.mediatype == "REELS" %}

{% trans "Media type" %}: {% trans "REELS" %}

{% elif post.mediatype == "STORIES" %}

{% trans "Media type" %}: {% trans "STORIES" %}

{% endif %}
{{post.caption|safe}}
{% endfor %}