diff options
author | zsloan | 2022-10-18 16:40:15 +0000 |
---|---|---|
committer | zsloan | 2022-10-18 16:41:03 +0000 |
commit | d9cbc9dfd34dbe75c1b28fba8ca3117740663c4d (patch) | |
tree | e2e1d2c55170f33eb7a056815f272f9d28f384e1 | |
parent | c8f606b0080a7dd343515c7c2ae830dfeecdf341 (diff) | |
download | genenetwork2-d9cbc9dfd34dbe75c1b28fba8ca3117740663c4d.tar.gz |
In collection table, show the trait name in the Symbol column if there's no symbol, and show location or name in the Description column if there's no description
-rw-r--r-- | wqflask/wqflask/templates/collections/view.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wqflask/wqflask/templates/collections/view.html b/wqflask/wqflask/templates/collections/view.html index b92464c3..a5f80958 100644 --- a/wqflask/wqflask/templates/collections/view.html +++ b/wqflask/wqflask/templates/collections/view.html @@ -178,6 +178,8 @@ 'render': function(data) { if (Object.hasOwn(data, 'symbol')){ return data.symbol + } else if (Object.hasOwn(data, 'name')){ + return data.name } else { return "N/A" } @@ -195,6 +197,10 @@ } catch(err){ return escape(data.description) } + } else if (Object.hasOwn(data, 'location')){ + return data.location + } else if (Object.hasOwn(data, 'name')){ + return data.name } else { return "N/A" } |