From d9cbc9dfd34dbe75c1b28fba8ca3117740663c4d Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 18 Oct 2022 16:40:15 +0000 Subject: 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 --- wqflask/wqflask/templates/collections/view.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'wqflask') 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" } -- cgit v1.2.3