{% if files %}
{% for file in files %}
{% if file.name.lower().endswith(('.png', '.jpg', '.jpeg', '.gif', '.webp', '.svg', '.bmp', '.ico')) or (file.content_type and file.content_type.startswith('image/')) %} {{ file.name }} {% elif file.name.endswith('.csv') or file.name.endswith('.tsv') %} {% elif file.name.endswith('.json') %} {% elif file.name.endswith('.py') or file.name.endswith('.js') or file.name.endswith('.ts') %} {% elif file.name.endswith('.md') or file.name.endswith('.txt') %} {% else %} {% endif %}
{{ file.name }} {% if file.metadata and file.metadata.source_file %} {% endif %}
{{ "%.1f"|format(file.size / 1024) }} KB
Download
{% endfor %}
Total size: {{ "%.1f"|format(files|sum(attribute='size') / (1024*1024)) }} MB
{% else %}

No files in this commit

{% if checkout_commit %} This commit contains no files. {% else %} No files in this commit. Use the Commit tab to add files. {% endif %}

{% endif %}