{% load file_tags %} {% load tagging_tags %} {% load i18n %} {% tags_for_object file as tags %}
{% file_options request.user file %}
{% if file.icon %}
{% endif %}

{{ file.get_name }}

{% trans "Download" %} this {{ file.type }}
{% with file.category_set as file_cat %} {% if file_cat %}
{% trans "Category:" %} {{ file_cat.category }} {% if file_cat.sub_category %} | {% trans "Sub Category:" %} {{ file_cat.sub_category }} {% endif %}
{% endif %} {% endwith %} {% if tags %}
Tags: {% for tag in tags %} {{ tag }}{% if not forloop.last %}, {% endif %} {% endfor %}
{% endif %}
{% csrf_token %}