From 7905b97e839e0f9c4cb15740b9293963b64118d6 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 21 Apr 2023 02:40:17 +0300 Subject: oauth: Update UI for phenotype resources. --- .../wqflask/templates/oauth2/view-resource.html | 57 ++++++++++++++++++++-- 1 file changed, 54 insertions(+), 3 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/templates/oauth2/view-resource.html b/wqflask/wqflask/templates/oauth2/view-resource.html index 3cfa6d74..510d7e67 100644 --- a/wqflask/wqflask/templates/oauth2/view-resource.html +++ b/wqflask/wqflask/templates/oauth2/view-resource.html @@ -79,7 +79,12 @@ Resource Data - Name + {%if resource.resource_category.resource_category_key == "phenotype"%} + Trait + Description + Year + {%endif%} + Dataset Name Full Name Actions @@ -88,6 +93,26 @@ {%for data_item in resource.resource_data:%} + {%if resource.resource_category.resource_category_key == "phenotype"%} + + + {{data_item.PublishXRefId}} + + + {{data_item.description}} + + {%if data_item.PubMed_ID%} + + {{data_item.Year}} + + {%else%} + {{data_item.Year}} + {%endif%} + + {%endif%} Link Data - Name + {%if resource.resource_category.resource_category_key == "phenotype"%} + Trait + Description + Year + {%endif%} + Dataset Name Actions @@ -137,9 +167,30 @@ {%else%} {%for data_item in unlinked_data:%} + {%if resource.resource_category.resource_category_key == "phenotype"%} + + + {{data_item.PublishXRefId}} + + + {{data_item.description}} + + {%if data_item.PubMed_ID%} + + {{data_item.Year}} + + {%else%} + {{data_item.Year}} + {%endif%} + + {%endif%} + title="Dataset Group: {{data_item.dataset_name}}" + target="_blank"> {{data_item.dataset_fullname}} -- cgit v1.2.3