Skip to content

Commit 67f8574

Browse files
Garfield-frjma
authored andcommitted
fix(document): add label file on the other section
* Closes #882. Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
1 parent 1306984 commit 67f8574

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

sonar/modules/documents/templates/documents/record.html

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{# -*- coding: utf-8 -*-
22
Swiss Open Access Repository
3-
Copyright (C) 2021-2022 RERO
3+
Copyright (C) 2021-2025 RERO
44

55
This program is free software: you can redistribute it and/or modify
66
it under the terms of the GNU Affero General Public License as published by
@@ -435,11 +435,16 @@ <h5 id="other_files" class="mt-5">{{ _('Other files') }}</h5>
435435
<hr class="mb-4 mt-0">
436436
<div class="row">
437437
{% for file in files %}
438-
{% if loop.index > 1 %}
439-
<div class="col-lg-2 mb-5">
440-
{{ thumbnail(record, file, stats['file-download'][file['key']] or 0) }}
441-
</div>
442-
{% endif %}
438+
{% if loop.index > 1 %}
439+
<div class="col-lg-2">
440+
{{ thumbnail(record, file, stats['file-download'][file['key']] or 0) }}
441+
{% if file.label %}
442+
<div class="text-center">
443+
{{ file.label }}
444+
</div>
445+
{% endif %}
446+
</div>
447+
{% endif %}
443448
{% endfor %}
444449
</div>
445450
{% endif %}

0 commit comments

Comments
 (0)