From bc9b4c3e48df84b33b0ecc85258d1043f3d12f72 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Mon, 28 Nov 2022 17:24:41 +0300 Subject: Fetch the accession_id from the dataset object * wqflask/wqflask/templates/search_result_page.html: Replace metadata.accession_id with dataset.accession_id. * wqflask/wqflask/templates/show_trait.html: Ditto. --- wqflask/wqflask/templates/search_result_page.html | 6 +++--- wqflask/wqflask/templates/show_trait.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html index 3a6f6e91..e013c7e6 100644 --- a/wqflask/wqflask/templates/search_result_page.html +++ b/wqflask/wqflask/templates/search_result_page.html @@ -17,7 +17,7 @@
-

We searched {{ dataset.fullname }} +

We searched {{ dataset.fullname }}
to find all records {% if go_term is not none %} @@ -97,8 +97,8 @@ - {% if metadata.accession_id %} - + {% if dataset.accession_id %} + {% endif %} diff --git a/wqflask/wqflask/templates/show_trait.html b/wqflask/wqflask/templates/show_trait.html index 4b92545c..b0390ace 100644 --- a/wqflask/wqflask/templates/show_trait.html +++ b/wqflask/wqflask/templates/show_trait.html @@ -52,7 +52,7 @@ {% include 'show_trait_details.html' %}

- {% if metadata.accession_id %} + {% if metadata %}

Data Set Group: {{ dataset.fullname }} -- cgit v1.2.3