{# -*- coding: utf-8 -*- This file is part of Invenio. Copyright (C) 2016-2020 CERN. Invenio is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {%- macro preview_file(preview_endpoint, pid, filename, id='preview-iframe', width='100%', height='400' ) %} {%- endmacro %} {%- macro file_list(files, pid, sort_by='key', with_preview=true, download_endpoint='invenio_records_ui.recid_files', preview_endpoint='invenio_records_ui.recid_previewer') %}
{{_('Name')}} | {{_('Size')}} | |
---|---|---|
{{ file.key }}
{{file.checksum}} |
{{ file.size|filesizeformat }} | {% if with_preview and file_type is previewable %} {{_("Preview")}} {% endif %} {{_('Download')}} |