{{ page.title }}

{{ content }} - {%- for table in site.data[page.schema].tables %} + {%- for table in schema_tables %} +

{{ table.name }}

{{ table.description }}

- - - - - - - {%- for col in table.columns %} - - - - - - - {%- endfor %} + + + + + + + + + + + + + {% assign sorted_by_name = table.columns | sort: 'name' %} + {% assign sorted_columns = sorted_by_name | sort: 'tap:column_index' %} + {% for col in sorted_columns %} + + + + + + + + + + {%- endfor %} +
Column NameData TypeUnitDescription [UCD]
- {{ col.name }} - {{ col.datatype }}{{ col['ivoa:unit'] | default: col['fits:tunit'] }} - {{- col.description | escape }} - {%- if col['ivoa:ucd'] %} [{{col['ivoa:ucd']}}]{% endif -%} -
Column NameData TypeUnitDescriptionUCDIndexPrincipal
+ {{ col.name }} + {{ col.datatype }}{{ col['ivoa:unit'] | default: col['fits:tunit'] }} + {{- col.description | escape }} + + {%- if col['ivoa:ucd'] %}{{col['ivoa:ucd']}}{% endif -%} + + {%- if col['tap:column_index'] %}{{col['tap:column_index']}}{% endif -%} + + {%- if col['tap:principal'] %}{{col['tap:principal']}}{% endif -%} +
{%- endfor %} diff --git a/browser/_sass/style2.scss b/browser/_sass/style2.scss index d5ef6b21..77a1e617 100644 --- a/browser/_sass/style2.scss +++ b/browser/_sass/style2.scss @@ -73,3 +73,8 @@ a { .main-content .schema-table .column-name { font-family: monospace; } + +.dataTables_length { + margin-top: 10px; + margin-left: 75px; +} \ No newline at end of file From 34013f3afc9a2553975fa839e7da216cb78918ed Mon Sep 17 00:00:00 2001 From: Jeremy McCormick Date: Tue, 15 Oct 2024 14:48:22 -0500 Subject: [PATCH 3/5] Fix the updated date so it uses the site time rather than last modified --- browser/_layouts/schema.html | 2 +- browser/_layouts/schema_index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/_layouts/schema.html b/browser/_layouts/schema.html index 142aee4c..6d90b026 100644 --- a/browser/_layouts/schema.html +++ b/browser/_layouts/schema.html @@ -40,7 +40,7 @@