Skip to content

Commit

Permalink
Show sensitive status on workspace detail page
Browse files Browse the repository at this point in the history
  • Loading branch information
amstilp committed Jan 30, 2024
1 parent afff51f commit d34881c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions primed/templates/cdsa/cdsaworkspace_detail.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
{% extends "anvil_consortium_manager/workspace_detail.html" %}

{% block pills %}
{% if workspace_data_object.is_sensitive %}
<span class="badge bg-warning text-dark">
<span class="me-2 fa-solid fa-hand"></span>
Sensitive data
<span class="ms-2 fa-solid fa-circle-question"
data-bs-toggle="tooltip"
data-bs-placement="bottom"
data-bs-title="This workspace contains sensitive data and therefore public posting of Genomic Summary Results (GSR) is prohibited; see also NOT-19-023."
></span>
</span>
{% endif %}

{{ block.super }}
{% endblock pills %}

{% block workspace_data %}
<dl class="row">
<hr>
Expand Down
16 changes: 16 additions & 0 deletions primed/templates/dbgap/dbgapworkspace_detail.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
{% extends "anvil_consortium_manager/workspace_detail.html" %}

{% block pills %}
{% if workspace_data_object.is_sensitive %}
<span class="badge bg-warning text-dark">
<span class="me-2 fa-solid fa-hand"></span>
Sensitive data
<span class="ms-2 fa-solid fa-circle-question"
data-bs-toggle="tooltip"
data-bs-placement="bottom"
data-bs-title="This workspace contains sensitive data and therefore public posting of Genomic Summary Results (GSR) is prohibited; see also NOT-19-023."
></span>
</span>
{% endif %}

{{ block.super }}
{% endblock pills %}

{% block workspace_data %}
<dl class="row">
<hr>
Expand Down

0 comments on commit d34881c

Please sign in to comment.