From db3807655a4d9b6e773fe96ed0b1f131f274b0f0 Mon Sep 17 00:00:00 2001 From: Drew Banin Date: Sun, 1 Mar 2020 21:33:49 -0500 Subject: [PATCH] render `meta` field in docs --- .../column_details/column_details.html | 16 ++++++++++- .../column_details/column_details.js | 3 +- .../table_details/table_details.html | 28 +++++++------------ .../components/table_details/table_details.js | 13 +++++++++ src/app/docs/model.html | 2 +- 5 files changed, 41 insertions(+), 21 deletions(-) diff --git a/src/app/components/column_details/column_details.html b/src/app/components/column_details/column_details.html index d737c5c05..9bc6ae9c4 100644 --- a/src/app/components/column_details/column_details.html +++ b/src/app/components/column_details/column_details.html @@ -57,7 +57,21 @@
-
+
+
Details
+
+
+
+
{{ k }}
+
{{ v }}
+
+
+
+
+ +
Description
diff --git a/src/app/components/column_details/column_details.js b/src/app/components/column_details/column_details.js index a7efe9173..4f68a1f41 100644 --- a/src/app/components/column_details/column_details.js +++ b/src/app/components/column_details/column_details.js @@ -22,8 +22,9 @@ angular scope.has_more_info = function(column) { var tests = (column.tests || []); var description = (column.description || ""); + var meta = (column.meta || {}); - return tests.length || description.length; + return tests.length || description.length || !_.isEmpty(meta); } scope.toggle_column_expanded = function(column) { diff --git a/src/app/components/table_details/table_details.html b/src/app/components/table_details/table_details.html index 02ae851b4..1c7870e6c 100644 --- a/src/app/components/table_details/table_details.html +++ b/src/app/components/table_details/table_details.html @@ -4,12 +4,16 @@
Details
-
- +
+
Tags
@@ -23,21 +27,9 @@
Details
{{ item.name }}
{{ item.value }}
-
-
Advanced
-
- Show - Hide -
-
-
- +
- +