Skip to content

Commit

Permalink
Show withdrawn + supporting status in file browser
Browse files Browse the repository at this point in the history
  • Loading branch information
tomodwyer committed Jul 2, 2024
1 parent 22d9289 commit 85083f4
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions airlock/templates/file_browser/file.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,18 @@
{% /button %}
{% endif %}
{% else %}{# request #}
{% if path_item.is_supporting %}
{% #description_item title="Supporting file" %}This is a supporting file and will not be released.{% /description_item%}
{% if path_item.is_supporting %}
<span class="file-status file-status--supporting relative group cursor-pointer">
<span class="file-status__icon"></span>
Supporting
{% tooltip content="This is a supporting file and will not be released." %}
</span>
{% elif path_item.is_withdrawn %}
{% #description_item title="Withdrawn file" %}This file has been withdrawn and will not be released.{% /description_item%}
<span class="file-status file-status--withdrawn relative group cursor-pointer">
<span class="file-status__icon"></span>
Withdrawn
{% tooltip content="This file has been withdrawn and will not be released." %}
</span>
{% endif %}

{% if is_author %}
Expand Down

0 comments on commit 85083f4

Please sign in to comment.