{# Copyright (C) 2020 CERN. Copyright (C) 2020 Northwestern University. Invenio RDM Records is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {% from 'invenio_previewer/macros.html' import file_list, preview_file %} {% macro preview_file_box(file, pid) %}
{{file.key}}
{{ preview_file('invenio_records_ui.recid_previewer', pid=pid, filename=file.key) }}
{%- endmacro %} {% macro file_list_box(files, pid) %}
{{ _("Files") }} {% if files %} ({{files|sum(attribute='size')|filesizeformat}}){% endif %}
{{ file_list(files, pid) }}
{%- endmacro %}