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/species-index-row/component.js
Normal file
5
app/pods/components/species-index-row/component.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.Component.extend({
|
||||
tagName: 'tr',
|
||||
});
|
13
app/pods/components/species-index-row/template.hbs
Normal file
13
app/pods/components/species-index-row/template.hbs
Normal file
|
@ -0,0 +1,13 @@
|
|||
<td>
|
||||
{{#link-to 'species.show' data}}
|
||||
{{data.speciesName}}
|
||||
{{/link-to}}
|
||||
</td>
|
||||
<td>
|
||||
{{#each data.strains as |strain index|}}
|
||||
{{if index ","}}
|
||||
{{#link-to 'strains.show' strain.id}}
|
||||
{{strain.strainName}}
|
||||
{{/link-to}}
|
||||
{{/each}}
|
||||
</td>
|
Reference in a new issue