{% load filesfolders_tags %} {# Projectroles dependency #} {% load projectroles_common_tags %} {# Icon & name column #} {% if item|get_class == 'Folder' %} {% elif item|get_class == 'HyperLink' %} {% elif item|get_class == 'File' %} {% endif %} {# Name/link column #} {% if item.flag %} {% get_flag_classes item.flag as flag_classes %} {% endif %} {% if item|get_class == 'Folder' %} {{ item.name|force_wrap:24|safe }} {% elif item|get_class == 'HyperLink' %} {{ item.name|force_wrap:24|safe }} {% elif item|get_class == 'File' %} {{ item.name|force_wrap:24|safe }} {% if allow_public_links and item.public_url and can_share_link %} {% endif %} {% endif %} {% if item.flag %} {% get_flag item.flag as item_flag %} {{ item_flag|safe }} {% endif %} {# File size column (only for files) #} {% if item|get_class == 'File' %} {{ item.file.file.size|filesizeformat }} {% endif %} {# Description column #} {{ item.description }} {# Owner column #} {% get_user_html item.owner as user_html %}{{ user_html|safe }} {# Date column #} {{ item.date_modified|date:'Y-m-d H:i' }} {% if not details_card_mode %} {# Action button column #} {% if can_update_all or item.owner == request.user and can_update_own %} {% if item|get_class == 'Folder' %} {% include 'filesfolders/_folder_dropdown.html' with item_uuid=item.uuid %} {% elif item|get_class == 'HyperLink' %} {% include 'filesfolders/_hyperlink_dropdown.html' with link=item %} {% elif item|get_class == 'File' %} {% include 'filesfolders/_file_dropdown.html' with file=file %} {% endif %} {% endif %} {# Checkbox column #} {% if can_update_all or item.owner == request.user and can_update_own %} {% endif %} {% endif %}