Skip to content

Commit

Permalink
documents: hide label file in the detailed view
Browse files Browse the repository at this point in the history
* Closes rero#732.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
  • Loading branch information
Garfield-fr committed Feb 16, 2022
1 parent 7eebf8e commit 488d574
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sonar/theme/templates/sonar/macros/macro.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@
{% else %}
{{ thumbnail_image(file.thumbnail, file.label) }}
{% endif %}
<div class="my-1 small">{{ file.label }}</div>
{% if file.restriction and file.restriction.restricted and file.restriction.date %}
<div class="my-1">
<span class="badge badge-secondary text-light">
{{ _('Public access from') }}<br>{{ file.restriction.date }}
</span>
</div>
{% endif %}
<div class="my-1">
<div class="my-2">
{% if file.links.external %}
<a href="{{ file.links.external }}" target="_blank">
<i class="fa fa-external-link mx-1"></i>
Expand Down

0 comments on commit 488d574

Please sign in to comment.