From 4e0d67800c9cf6da1e80e8eaf19602478749a996 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Tue, 17 Nov 2015 09:07:49 -0700 Subject: [PATCH] Fix strains index strain name formatting Fixes #63 --- app/pods/components/full-strain-name/template.hbs | 1 + app/pods/protected/strains/index/strain-table/template.hbs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 app/pods/components/full-strain-name/template.hbs diff --git a/app/pods/components/full-strain-name/template.hbs b/app/pods/components/full-strain-name/template.hbs new file mode 100644 index 0000000..ecab987 --- /dev/null +++ b/app/pods/components/full-strain-name/template.hbs @@ -0,0 +1 @@ +{{strain.fullNameMU}}{{{if strain.typeStrain 'T' ''}}} diff --git a/app/pods/protected/strains/index/strain-table/template.hbs b/app/pods/protected/strains/index/strain-table/template.hbs index bb13d76..8afca9d 100644 --- a/app/pods/protected/strains/index/strain-table/template.hbs +++ b/app/pods/protected/strains/index/strain-table/template.hbs @@ -13,8 +13,8 @@ {{#each sortedStrains as |strain|}} - {{#link-to 'protected.strains.show' strain classBinding="data.typeStrain:type-strain"}} - {{strain.fullNameMU}} + {{#link-to 'protected.strains.show' strain classBinding="strain.typeStrain:type-strain"}} + {{full-strain-name strain=strain}} {{/link-to}}