Try computed properties

This commit is contained in:
Matthew Dillon 2015-06-12 11:23:33 -08:00
parent ab2a169114
commit 2bf7534ec4
3 changed files with 16 additions and 6 deletions

View file

@ -10,6 +10,7 @@
</div>
{{#if isLoading}}
{{!-- This doesn't work yet --}}
{{loading-panel}}
{{else}}
<table class="flakes-table">
@ -22,7 +23,11 @@
</thead>
<tbody>
{{#each measurements as |measurement|}}
{{measurement-index-row data=measurement}}
<tr>
<td>{{{measurement.strain.fullNameMU}}}</td>
<td>{{measurement.characteristic.characteristicName}}</td>
<td>{{{measurement.value}}}</td>
</tr>
{{/each}}
</tbody>
</table>

View file

@ -1,6 +1,6 @@
<td>
{{#link-to 'strains.show' data.id classBinding="data.typeStrain:type-strain"}}
{{scientific-name strain=data}}
{{{data.fullNameMU}}}
{{/link-to}}
</td>
<td>