diff --git a/app/models/strain.js b/app/models/strain.js
index cbde6ed..293cc9f 100644
--- a/app/models/strain.js
+++ b/app/models/strain.js
@@ -2,6 +2,7 @@ import DS from 'ember-data';
export default DS.Model.extend({
measurements: DS.hasMany('measurements', { async: true }),
+ speciesName: DS.attr('string'),
strainName: DS.attr('string'),
strainType: DS.attr('string'),
etymology: DS.attr('string'),
@@ -10,5 +11,6 @@ export default DS.Model.extend({
isolatedFrom: DS.attr('string'),
createdAt: DS.attr('date'),
updatedAt: DS.attr('date'),
- deletedAt: DS.attr('date')
+ deletedAt: DS.attr('date'),
+ totalMeasurements: DS.attr('number')
});
diff --git a/app/templates/strains/index.hbs b/app/templates/strains/index.hbs
index 6351378..7363f1c 100644
--- a/app/templates/strains/index.hbs
+++ b/app/templates/strains/index.hbs
@@ -12,7 +12,7 @@
{{#each strain in model}}
{{link-to strain.strainName 'measurements' strain}} |
- |
+ {{strain.totalMeasurements}} |
{{/each}}
diff --git a/app/templates/strains/show.hbs b/app/templates/strains/show.hbs
index 67d9c98..0c10449 100644
--- a/app/templates/strains/show.hbs
+++ b/app/templates/strains/show.hbs
@@ -2,29 +2,41 @@