{% set file %} {% if submission.FILESAVED == 0 %}
Submission has no file
{% elif submission.FILESAVED == 1 %}
{% else %} {% for ext in submission.FILEEXT|map("lower") %}
1 or ext in ["mp4", "mov", "webm", "ogg", "3gp"] }}" data-scroll="0" id="file-{{ loop.index0 }}" style="width: fit-content" {{ "hidden" if not loop.first }}> {% if ext in ["jpg", "jpeg", "png", "gif"] %}
{% elif ext in ["mp4", "mov", "webm", "ogg", "3gp"] %}
{% elif ext in ["swf"] %}
{% elif ext in ["txt"] %}
{% if files_text[loop.index0] %} {% autoescape false %}{{ files_text[loop.index0].strip() }}{% endautoescape %} {% else %}
No text
{% endif %}
{% elif ext in ["mp3", "wav", "mid"] %}
{% else %}
{{ filenames[loop.index0]|title }} {% endif %} {% if submission.FILEEXT|length > 1 %}
{% if ext not in ["jpg", "jpeg", "png", "gif"] %} {% endif %}
{% elif ext in ["mp4", "mov", "webm", "ogg", "3gp"] %}
{% endif %}
{% endfor %} {% endif %} {% endset %} {% include "navbar.html" %}
{{ file }}

{{ submission.TITLE }}

Tags
{% for tag in submission.TAGS %} {{ tag }} {% endfor %} {% if not submission.TAGS %} No tags {% endif %}
Favorites
{% for user in submission.FAVORITE %} {{ user }} {% endfor %} {% if not submission.FAVORITE %} No favorites {% endif %}
Mentions
{% for user in submission.MENTIONS %} {{ user }} {% endfor %} {% if not submission.MENTIONS %} No mentions {% endif %}
{% if comments %}
Comments
{{ comments|length }}
{% endif %}
{% autoescape false %}{{ submission.DESCRIPTION }}{% endautoescape %}
{% if comments %}{% include "comments.html" %}{% endif %}
{% set floating_buttons = 0 %} {% if comments %} {% set floating_buttons = floating_buttons + 1 %} {% endif %} {% if submission.FILESAVED %} {% set floating_buttons = floating_buttons + 1 %} {% endif %}
{% if submission.FILEEXT|length > 1 %} {% endif %} {% if "swf" in submission.FILEEXT|map("lower")|list %} {% endif %}