{% load i18n %} {% load lfc_tags %}

{% trans "Files" %}

{% ifportalhasperm manage_portal %} {% if obj.files.all %}
{% csrf_token %} {% for file in obj.files.all %} {% endfor %}
{% trans 'Title' %} {% trans 'Description' %} {% trans 'Position' %} {% trans 'Manage' %}
{{ file.description|truncatewords_html:5|safe }} {% if not forloop.first %} {% endif %} {% if not forloop.last %} {% else %} {% endif %}
{% else %} {% trans 'There are no files' %} {% endif %}

{% trans 'Add files' %}

{% csrf_token %}
{% else %} {% if obj.files.all %} {% for file in obj.files.all %} {% endfor %}
{% trans 'Title' %} {% trans 'Creation date' %}
{{ file.title }} {{ file.creation_date|date:"Y-m-d H:i:s" }}
{% else %} {% trans 'There are no files' %} {% endif %} {% endifportalhasperm %}