DSS-5869 Adds Component: dataset-sample

This commit is contained in:
Seyi Adebajo 2017-02-13 14:55:13 -08:00 committed by Mars Lan
parent d672599824
commit ad6764ae26
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,4 @@
import Ember from 'ember';
export default Ember.Component.extend({
});

View File

@ -0,0 +1,26 @@
{{#if hasSamples}}
{{#if isPinot}}
<table id="pinotsampletreegrid" class="tree table table-bordered dataset-detail-table">
<thead>
<tr class="results-header">
{{#each columns as |column|}}
<th class="col-xs-2">{{column}}</th>
{{/each}}
</tr>
</thead>
<tbody>
{{#each samples as |sample|}}
<tr>
{{#each sample as |r|}}
<td class="wrap-all-word">{{r}}</td>
{{/each}}
</tr>
{{/each}}
</tbody>
</table>
{{else}}
<div id="datasetSampleData-json-human" class="table-responsive"></div>
{{/if}}
{{else}}
<p>Sample data is not available</p>
{{/if}}