aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-07-03 11:41:23 +0300
committerFrederick Muriuki Muriithi2023-07-03 11:41:23 +0300
commitc8e6a9c35235f09b52ef0d01fd4db0a0169078e2 (patch)
tree4648a6e366d496d4f0612b324a6711b0154a2c55
parente12e6d376de997e19032e06a60599f8752078dd5 (diff)
downloadgenenetwork2-c8e6a9c35235f09b52ef0d01fd4db0a0169078e2.tar.gz
UX: Improve error messages
Make the error messages a little less cryptic in order to improve the user's experience of the site.
-rw-r--r--wqflask/wqflask/templates/show_trait.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/wqflask/wqflask/templates/show_trait.html b/wqflask/wqflask/templates/show_trait.html
index 84231d34..aff12571 100644
--- a/wqflask/wqflask/templates/show_trait.html
+++ b/wqflask/wqflask/templates/show_trait.html
@@ -126,7 +126,11 @@
</form>
</div>
{%else%}
- {{display_error("Access Denied", {"error": "AuthorisationError", "error_description": "No read access for user '" + user.name + "'."})}}
+ {%if user.name == "Anonymous User"%}
+ {{display_error("Access Denied", {"error": "AuthorisationError", "error_description": "This trait is not accessible for the general public yet. Please log in."})}}
+ {%else%}
+ {{display_error("Access Denied", {"error": "AuthorisationError", "error_description": "The user '" + user.name + "', does not currently possess the appropriate privileges to view this trait. If you know the owner of this trait, please request that they grant you access, or wait until it is made public."})}}
+ {%endif%}
{%endif%}
<!-- End of body -->