DSS-5869 Adds Component: dataset-impact

This commit is contained in:
Seyi Adebajo 2017-02-13 14:52:59 -08:00 committed by Mars Lan
parent cc11347e5a
commit 66dc54f0df
2 changed files with 34 additions and 0 deletions

View File

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

View File

@ -0,0 +1,30 @@
{{#if hasImpacts}}
<table id="impactAnalysisTable" class="tree table table-bordered dataset-detail-table">
<thead>
<tr class="results-header">
<th class="span2">Level</th>
<th class="span2">Dataset</th>
<th>URN</th>
</tr>
</thead>
<tbody>
{{#each impacts as |impact|}}
<tr>
<td>{{impact.level}}</td>
<td>
{{#if impact.isValidDataset}}
<a href={{impact.datasetUrl}}>
{{impact.name}}
</a>
{{else}}
{{impact.name}}
{{/if}}
</td>
<td>{{impact.urn}}</td>
</tr>
{{/each}}
</tbody>
</table>
{{else}}
<p>Impact analysis is not available</p>
{{/if}}