diff --git a/app/router.js b/app/router.js index 7903fda..457fe4f 100644 --- a/app/router.js +++ b/app/router.js @@ -11,7 +11,11 @@ Router.map(function() { this.resource('genera'); this.resource('species'); this.resource('strains'); + this.resource('strain', { path: '/strain/:strain_id' }, function() { + this.resource('measurements'); + }); this.resource('measurements'); + this.resource('measurement', { path: '/measurement/:measurement_id' }); }); export default Router; diff --git a/app/templates/strain.hbs b/app/templates/strain.hbs new file mode 100644 index 0000000..96eb99c --- /dev/null +++ b/app/templates/strain.hbs @@ -0,0 +1,53 @@ +
+
+
+ {{strainName}} +
+
+
Species
+
{{species.speciesName}}
+
+
+
Strain
+
{{strainName}}
+
+
+
Type
+
{{strainType}}
+
+
+
+
+
Accession Banks
+
{{accessionBanks}}
+
+
+
Genbank EMBL DDB
+
{{genbankEmblDdb}}
+
+
+
Isolated From
+
{{isolatedFrom}}
+
+
+
+
Etymology
+
{{etymology}}
+
+
+
+
Created
+
{{createdAt}}
+
+
+
Updated
+
{{updatedAt}}
+
+
+
Deleted
+
{{null-time deletedAt}}
+
+
+
+
+
diff --git a/app/templates/strains.hbs b/app/templates/strains.hbs index f180b3d..6232146 100644 --- a/app/templates/strains.hbs +++ b/app/templates/strains.hbs @@ -1,53 +1,6 @@ -
+

Strains

+
+