Skip to content

Commit

Permalink
record details: change handling of no files in the record
Browse files Browse the repository at this point in the history
  • Loading branch information
anikachurilova authored and slint committed Nov 22, 2023
1 parent 82432b6 commit 8a42d47
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions templates/semantic-ui/zenodo_rdm/records/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,9 @@
>
{%- if permissions.can_read_files -%}
{# record has files AND user has permission to see files #}
<h2 id="files-heading">{{ _('Files') }}</h2>
{%- set files = files|order_entries %}
{%- if record.files.enabled and (files is not defined or files|length == 0) -%}
<div class="ui message warning">
<div class="header">
Looking for files of this record?
</div>
They are currently under migration process and will be available soon!
</div>
{% else %}
{%- if files|length > 0 -%}
<h2 id="files-heading">{{ _('Files') }}</h2>
{%- if files|has_previewable_files -%}
{%-set preview_file = files|select_preview_file(default_preview=record.files.default_preview) %}
{{ preview_file_box(preview_file, record.id, is_preview, record, include_deleted) }}
Expand Down

0 comments on commit 8a42d47

Please sign in to comment.