mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-10 17:46:02 +00:00
DSS-5869 Adds Component: dataset-impact
This commit is contained in:
parent
cc11347e5a
commit
66dc54f0df
4
wherehows-web/app/components/dataset-impact.js
Normal file
4
wherehows-web/app/components/dataset-impact.js
Normal file
@ -0,0 +1,4 @@
|
||||
import Ember from 'ember';
|
||||
|
||||
export default Ember.Component.extend({
|
||||
});
|
||||
30
wherehows-web/app/templates/components/dataset-impact.hbs
Normal file
30
wherehows-web/app/templates/components/dataset-impact.hbs
Normal 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}}
|
||||
Loading…
x
Reference in New Issue
Block a user