{% extends "base.html" %} {% load django_bootstrap5 %} {% load pictures %} {% load humanize %} {% block title %}File details{% endblock title %} {% block main_content %}
{{ file.filetype|capfirst }} {{ file.title }}
{% render_file file.original img_alt=file.title img_loading="lazy" img_class="img-fluid" lg=9 sm=12 %}
File Information
Title
{{ file.title }}
Download
download ({{ file.file_size|intcomma }} bytes {{ file.mimetype }})
UUID
{{ file.uuid }}
Uploader
{{ file.uploader }}
CC Attribution
{{ file.attribution }}
CC Source
{{ file.source }}
CC License
{{ file.get_license_display }}
Hits
{{ file.hits.count }}
Original Filename
{{ file.original_filename }}
Description

{{ file.description|default:"n/a" }}

Created
{{ file.created|date:"d/m/y-H:i:s" }}
Updated
{{ file.updated|date:"d/m/y-H:i:s" }}
{% if file.filetype == "image" %}
Image Versions
Original File
{{ file.width }}*{{ file.height }} (width*height), Aspect Ratio {{ file.aspect_ratio }}
{% for ratio, filetypes in file.get_image_versions.items %} {% for filetype, sizes in filetypes.items %}
{{ filetype }} ({{ ratio|default:"Original AR" }})
{% for width, height, picurl in sizes %} {% if picurl %} {{ width }}*{{ height }} {% else %} {{ width }}*{{ height }} {% endif %} {% endfor %}
{% endfor %} {% endfor %}
{% endif %}
Albums
{% for album in file.active_albums_list %}

{{ album }}

{% endfor %}
{% if file.tags.exists %}

{% if request.user.is_curator %} {% for tag in file.tags.all %} {% if request.user.uuid in tag.tagger_uuids %}

{% csrf_token %}
{% else %}
{% csrf_token %}
{% endif %} {% endfor %} {% endif %}

Click to tag or untag an existing tag. You can also add new tags

{% else %}

No tags yet. Add new tags

{% endif %}
Thumbnails
{% for ratio, filetypes in file.get_thumbnail_versions.items %} {% for filetype, sizes in filetypes.items %} {% endfor %} {% endfor %}
RatioFiletypeSizes
{{ ratio|default:"Default" }} {{ filetype }} {% for width, height, picurl in sizes %}{{ width }}*{{ height }} {% endfor %}
{% if file.filetype == "image" and file.exif %}
Image Exif Data
{{ file.exif | pprint }}
{% endif %}
{% endblock main_content %}