aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-09-16 17:59:49 +0000
committerzsloan2021-09-20 17:35:04 +0000
commit719b256996facb1f4bee2a0288bce1f18168f99b (patch)
tree797d0104f042099d3cee59a93606619580470d60 /wqflask
parentb6c0885007d516b257d1027b97df66c11b8672dd (diff)
downloadgenenetwork2-719b256996facb1f4bee2a0288bce1f18168f99b.tar.gz
Added back the option to edit privileges on trait pages, since the metadata edit button had replaced it
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/show_trait_details.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/wqflask/wqflask/templates/show_trait_details.html b/wqflask/wqflask/templates/show_trait_details.html
index 36d3c15a..6a541c8c 100644
--- a/wqflask/wqflask/templates/show_trait_details.html
+++ b/wqflask/wqflask/templates/show_trait_details.html
@@ -242,6 +242,9 @@
{% if this_trait.dataset.type == 'ProbeSet' %}
<button type="button" id="edit_resource" class="btn btn-success" title="Edit Resource" onclick="window.open('/trait/edit/probeset-name/{{ this_trait.name }}', '_blank')">Edit</button>
{% endif %}
+ {% if admin_status == "owner" or admin_status == "edit-admins" or admin_status == "edit-access" %}
+ <button type="button" id="edit_resource" class="btn btn-success" title="Edit Resource" onclick="window.open('./resources/manage?resource_id={{ resource_id }}', '_blank')">Edit Privileges</button>
+ {% endif %}
{% endif %}
</div>
</div>