Skip to content

Commit

Permalink
WIP: Add column for index field
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyMcCormick committed Oct 4, 2024
1 parent 1ee65c4 commit 5d20b0b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions browser/_layouts/schema.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ <h1>{{ page.title }}</h1>
<h2>{{ table.name }}</h2>
<p>{{ table.description }}</p>
<table class="schema-table">
<!--<caption>{{ table.description }}</caption>-->
<thead>
<tr>
<th>Column Name [index]</th>
<th>Index</th>
<th>Column Name</th>
<th>Data Type</th>
<th>Unit</th>
<th>Description [UCD]</th>
Expand All @@ -64,15 +64,16 @@ <h2>{{ table.name }}</h2>
{% assign sorted_columns = sorted_by_name | sort: 'tap:column_index' %}
{% for col in sorted_columns %}
<tr id="{{ col['@id'] | remove:'#' }}">
<td style="text-align: center;">
{%- if col['tap:column_index'] %}{{col['tap:column_index']}}{% endif -%}
</td>
<td class="column-name">
<a href="#{{ col['@id'] | remove:'#' }}">{{ col.name }}</a>
{%- if col['tap:column_index'] %} [{{col['tap:column_index']}}]{% endif -%}
</td>
<td>{{ col.datatype }}</td>
<td>{{ col['ivoa:unit'] | default: col['fits:tunit'] }}</td>
<td>
{{- col.description | escape }}
{%- if col['ivoa:ucd'] %} [{{col['ivoa:ucd']}}]{% endif -%}
</td>
</tr>
{%- endfor %}
Expand Down

0 comments on commit 5d20b0b

Please sign in to comment.