aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-07-24 11:21:04 +0300
committerFrederick Muriuki Muriithi2023-07-24 11:21:04 +0300
commit8390c1c71f24ede0f1ad291157cb9335e80f92f8 (patch)
tree9289dbb5e68bb2d781f1b4b93864717b14f320d7
parent5930087ff8ed1dc857d145e155d327528866a11e (diff)
downloadgenenetwork2-8390c1c71f24ede0f1ad291157cb9335e80f92f8.tar.gz
Display "Edit" button for all users
Display the "Edit" button for all the users to ensure that they are aware of the feature.
-rw-r--r--wqflask/wqflask/templates/show_trait_details.html2
1 files changed, 0 insertions, 2 deletions
diff --git a/wqflask/wqflask/templates/show_trait_details.html b/wqflask/wqflask/templates/show_trait_details.html
index c745fce8..cfd11419 100644
--- a/wqflask/wqflask/templates/show_trait_details.html
+++ b/wqflask/wqflask/templates/show_trait_details.html
@@ -239,7 +239,6 @@
{% endif %}
{% endif %}
<button type="button" id="view_in_gn1" class="btn btn-primary" title="View Trait in GN1" onclick="window.open('http://gn1.genenetwork.org/webqtl/main.py?cmd=show&db={{ this_trait.dataset.name }}&probeset={{ this_trait.name }}', '_blank')">Go to GN1</button>
- {%if "group:resource:edit-resource" in trait_privileges%}
{% if this_trait.dataset.type == 'Publish' %}
<button type="button" id="edit_resource" class="btn btn-success" title="Edit Resource" onclick="window.open('/datasets/{{ this_trait.dataset.group.id }}/traits/{{ this_trait.name }}?resource-id={{ resource_id }}&dataset_name={{this_trait.dataset.name}}', '_blank')">Edit</button>
{% endif %}
@@ -247,7 +246,6 @@
{% if this_trait.dataset.type == 'ProbeSet' %}
<button type="button" id="edit_resource" class="btn btn-success" title="Edit Resource" onclick="window.open('/datasets/traits/{{ this_trait.name }}?resource-id={{ resource_id }}&dataset_name={{this_trait.dataset.name}}', '_blank')">Edit</button>
{% endif %}
- {% endif %}
</div>
{%if "group:resource:edit-resource" in trait_privileges%}
<div class="btn-group">