{% load i18n %}{% comment %} Media Library picker modal content - loaded via HTMX. Context: assets, workspace, post (optional). {% endcomment %} {% if assets %}
{% for asset in assets %}
{% if asset.thumbnail %} {{ asset.filename }} {% elif asset.is_video and asset.file %} {% elif asset.file %} {{ asset.filename }} {% else %}
{% endif %}
{% if asset.is_video %}
{{ asset.duration|floatformat:0 }}s
{% endif %} {% if asset.is_shared %} {% translate "SHARED" %} {% endif %}
{{ asset.filename }}
{% endfor %}
{% else %}

{% translate "No media yet" %}

{% translate "Upload files to your media library to use them here" %}

{% endif %}