{% extends "base.html" %}
{% block copyright %}
{% endblock %}
{% block title %}{{ src }}{% endblock %}
{% block extra_head %}
{% include "canvas_view_js.html" %}
{% if settings.DEBUG %}
{% else %}
{% endif%}
{% if geo_info %}
{% endif %}
{% endblock %}
{% set disabled_attrs='class="disabled" title="You do not have permission to use this function"'|safe %}
{% block body %}
{% if file_info and db_info and db_info.status == STATUS_ACTIVE %}
{% else %}
{% endif %}
{% if err_msg %}
{{ err_msg|newlines }}
{% else %}
{% if db_info and db_info.status == STATUS_ACTIVE %}
{% if is_folder_permitted(db_info.folder, FolderPermission.ACCESS_DOWNLOAD) %}
Download original
Publish image
{% else %}
Download original
Publish image
{% endif %}
{% if is_folder_permitted(db_info.folder, FolderPermission.ACCESS_UPLOAD) %}
Reset
Rename file
{% else %}
Reset
Rename file
{% endif %}
{% if is_folder_permitted(db_info.folder, FolderPermission.ACCESS_DELETE) %}
Move file
Delete file
{% else %}
Move file
Delete file
{% endif %}
{% endif %}
File
{% if not file_info %}
{% if not db_info %}
This file does not exist.
{% else %}
This file no longer exists.
{% endif %}
{% else %}
File path {{ file_info.path }}
File size {{ file_info.size|filesizeformat }}
File date {{ file_info.modified|datetimeformat(True) }} {{ timezone }}
{% if image_info %}
Image width {{ image_info.width }}
Image height {{ image_info.height }}
{% endif %}
{% endif %}
{% endif %}
Attributes
{% if db_info and db_info.status == STATUS_ACTIVE %}
{% if is_folder_permitted(db_info.folder, FolderPermission.ACCESS_EDIT) %}
(change )
{% else %}
(change)
{% endif %}
{% endif %}
{% if not db_info %}
None
{% else %}
Title {{ db_info.title|default('-', True) }}
Description {{ db_info.description|default('-', True) }}
{% endif %}
Statistics
{% if db_stats %}
{% if is_permitted(SystemPermission.PERMIT_REPORTS) %}
(chart )
{% else %}
(chart)
{% endif %}
{% endif %}
{% if not db_stats %}
No statistics are available.
{% else %}
Requests in 24 hours
{{ db_stats.day.requests }}
Images served in 24 hours
{{ db_stats.day.views + db_stats.day.downloads }}
Bandwidth in 24 hours
{{ db_stats.day.bytes|filesizeformat }}
Requests in last 30 days
{{ db_stats.month.requests }}
Images served in last 30 days
{{ db_stats.month.views + db_stats.month.downloads }}
Bandwidth in last 30 days
{{ db_stats.month.bytes|filesizeformat }}
{% endif %}
{% if db_stats %}
Statistics are updated once a minute
{% endif %}
{% if db_info and db_stats %}
{% endif %}
{% if image_info %}
{% for profile in image_info %}
{% if profile not in ['width', 'height'] %}
{{ profile }}
{% for tags in image_info.get(profile) %}
{{ tags.0|decamelcase }}
{{ tags.1|truncate(140) }}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% if geo_info %}
{% endif %}
Change history
{% if not db_history %}
No history is available.
{% else %}
{% for history in db_history %}
{% if history.action == ACTION_DELETED %}
Deleted
{% elif history.action == ACTION_CREATED %}
{% if history.user %}
Uploaded
{% else %}
Created
{% endif %}
{% elif history.action == ACTION_REPLACED %}
Replaced
{% elif history.action == ACTION_EDITED %}
Edited
{% elif history.action == ACTION_MOVED %}
Moved
{% else %}
Action {{ history.action }}
{% endif %}
by
{% if history.user %}
{{ history.user }}
{% else %}
System
{% endif %}
{{ history.action_info }}
{% if loop.index0 == 0 %}{{ timezone }} {% endif %}
{{ history.action_time|datetimeformat(True) }}
{% endfor %}
{% endif %}
{% if db_info %}
{% endif %}
{% endblock %}