Sortable table component
This commit is contained in:
parent
e623d52f34
commit
6ba5cf2322
23 changed files with 225 additions and 74 deletions
5
app/pods/components/strain-index-row/component.js
Normal file
5
app/pods/components/strain-index-row/component.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.Component.extend({
|
||||
tagName: 'tr',
|
||||
});
|
8
app/pods/components/strain-index-row/template.hbs
Normal file
8
app/pods/components/strain-index-row/template.hbs
Normal file
|
@ -0,0 +1,8 @@
|
|||
<td>
|
||||
{{#link-to 'strains.show' data.id}}
|
||||
{{scientific-name strain=data}}
|
||||
{{/link-to}}
|
||||
</td>
|
||||
<td>
|
||||
{{data.totalMeasurements}}
|
||||
</td>
|
Reference in a new issue