{% extends "base.html" %} {% load static %} {% load django_bootstrap5 %} {% load pictures %} {% load humanize %} {% block title %}File details{% endblock title %} {% block extra_head %} {% endblock extra_head %} {% block main_content %}
{% block file_detail %} {% endblock file_detail %}
{{ file.filetype|capfirst }} Information Show {{ file.filetype|capfirst }}
License & Attribution
Title
{{ file.title }}
Attribution
{{ file.attribution }}
Source License
{{ file.get_license_display }}
Download
Original File
download ({{ file.file_size|intcomma }} bytes {{ file.mimetype }})
Metadata
Description
{% if file.description %}

{{ file.description }}

{% else %}N/A{% endif %}
Uploader BMA UUID
{{ file.uuid }}
Hits
{{ file.hits.count }}
Original Filename
{{ file.original_filename }}
Created (uploaded)
{{ file.created_at }}
Updated
{{ file.updated_at }}
Jobs
{{ file.filetype|capfirst }} Thumbnails Show Thumbnails
{% for ratio, filetypes in file.get_thumbnails.items %} {% for filetype, sizes in filetypes.items %} {% endfor %} {% endfor %}
RatioMimetypeSizes
{{ ratio|default:"Default" }} {{ filetype }} {% for width, thumbnail in sizes.items %}{{ width }}*{{ thumbnail.height }} {% endfor %}
{% if file.filetype == "image" %}
Image Versions

Original: {{ file.width }}*{{ file.height }} AR {{ file.aspect_ratio }} ({{ file.file_size|intcomma }} bytes {{ file.mimetype }})

{% for ratio, mimetypes in file.get_versions.items %} {% for mimetype, sizes in mimetypes.items %} {% endfor %} {% endfor %}
RatioMimetypeSizes
{{ ratio|default:"Default" }} {{ mimetype }} {% for width, version in sizes.items %}{{ width }}*{{ version.height }} {% endfor %}
{% endif %}
Albums Show 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 %}
{% if file.filetype == "image" and file.exif %}
Image Exif Data
{{ file.exif | pprint }}
{% endif %}
{% endblock main_content %}