{% import "header.html" as header %}
Photo
{% set filename = photo.id + photo.dot_extension %} {% set link = "/file/" + filename %} {{header.make_header(session=session)}}
Tags
{% set tags = photo.sorted_tags() %} {% for tag in tags %}
{{tag.qualified_name()}}
{% endfor %}
add
File info
{% if photo.author_id %} {% set author = photo.author() %}
Author:
{{author.username}}
{% endif %} {% if photo.width %}
Dimensions: {{photo.width}}x{{photo.height}} px
Aspect ratio: {{photo.ratio}}
{% endif %}
Size: {{photo.bytestring()}}
{% if photo.duration %}
Duration: {{photo.duration_string()}}
{% endif %}
Download as {{photo.id}}.{{photo.extension}}
Download as "{{photo.basename}}"
{% set albums = photo.albums() %} {% if albums %}
Albums containing this photo
{% for album in albums %}
{{album.title}}
{% endfor %} {% endif %}
{% if photo.mimetype == "image" %}
{% elif photo.mimetype == "video" %}
{% elif photo.mimetype == "audio" %}
{% else %}
View {{filename}}
{% endif %}