{# Copyright 2020 Karlsruhe Institute of Technology # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. #} {% extends "records/manage_file_base.html" %} {% set can_update_record = has_permission(current_user, "update", "record", record.id) %} {% block content %} {% snippet "back_to_record", _module="records", record=record, tab="files" %}

{{ template_hook("kadi_get_resource_overview_templates", resource=file) }}
{{ file.name }} {{ file.mimetype | truncate(50) }}
{{ file.size | filesize }}
{% trans %}Persistent ID:{% endtrans %} {{ file.id }}
{% trans %}Storage type:{% endtrans %} {{ file.storage.storage_name }}
md5:{{ file.checksum }}

{% trans %}Created by{% endtrans %}
{% trans %}Created at{% endtrans %} ()
{% trans %}Last modified at{% endtrans %} ()

{{ template_hook("kadi_get_preview_templates", file=file) }}
{% trans %}Note that preview data may be truncated.{% endtrans %}
{% trans %}No preview available.{% endtrans %}
{% endblock %} {% block scripts %} {{ render_js("app/records/view-file.js") }} {% for script in preview_scripts %} {% endfor %} {% endblock %}