discourse-data-explorer/assets/javascripts/discourse/templates/components/explorer-schema-onetable.hbs

34 lines
772 B
Handlebars
Raw Normal View History

2015-07-08 16:45:13 -04:00
<div class="schema-table-name">
{{#if table.open}}
<i class="fa fa-caret-down"></i>
{{else}}
<i class="fa fa-caret-right"></i>
{{/if}}
{{table.name}}
</div>
<div class="schema-table-cols">
{{#if table.open}}
2015-07-08 19:46:36 -04:00
<dl>
2015-07-08 16:45:13 -04:00
{{#each table.columns as |col|}}
2015-07-08 19:46:36 -04:00
<div>
<dt class="{{if col.sensitive "sensitive"}}" title="{{if col.sensitive (i18n "explorer.schema.sensitive")}}">
2015-07-08 16:45:13 -04:00
{{#if col.sensitive}}
2015-07-08 19:46:36 -04:00
<i class="fa fa-warning"></i>
{{/if}}
{{col.column_name}}
</dt>
<dd>
{{col.data_type}}
{{#if col.notes}}
<br>
<span class="schema-typenotes">
{{col.notes}}
2015-07-08 16:45:13 -04:00
</span>
{{/if}}
2015-07-08 19:46:36 -04:00
</dd>
2015-07-08 16:45:13 -04:00
</div>
{{/each}}
2015-07-08 19:46:36 -04:00
</dl>
2015-07-08 16:45:13 -04:00
{{/if}}
</div>