From b58e86a3fdba6cbe516a22c98f3338661f3db6b1 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 3 Jun 2015 13:59:06 -0800 Subject: [PATCH] Commas --- app/templates/components/species/species-details.hbs | 3 ++- app/templates/species/index.hbs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/templates/components/species/species-details.hbs b/app/templates/components/species/species-details.hbs index cd61c64..9772228 100644 --- a/app/templates/components/species/species-details.hbs +++ b/app/templates/components/species/species-details.hbs @@ -15,7 +15,8 @@
Strains
- {{#each strain in species.strains}} + {{#each species.strains as |strain index|}} + {{if index ","}} {{#link-to 'strains.show' strain.id}} {{strain.strainName}} {{/link-to}} diff --git a/app/templates/species/index.hbs b/app/templates/species/index.hbs index c2b3d8a..d31940f 100644 --- a/app/templates/species/index.hbs +++ b/app/templates/species/index.hbs @@ -24,7 +24,8 @@ {{/link-to}} - {{#each strain in species.strains}} + {{#each species.strains as |strain index|}} + {{if index ","}} {{#link-to 'strains.show' strain.id}} {{strain.strainName}} {{/link-to}}