diff --git a/app/handlebars.js b/app/handlebars.js index 928ce06b..fa36df93 100644 --- a/app/handlebars.js +++ b/app/handlebars.js @@ -29,6 +29,10 @@ function interlinear(cssClasses, opts) { } +function is(a, b) { + return a == b +} + function translation(str) { return `‘${ str }’` } @@ -54,6 +58,7 @@ const hbs = new ExpressHandlebars({ helpers: { igl: interlinear, inex: inlineExample, + is, section, tln: translation, }, diff --git a/pages/Component/Component.hbs b/pages/Component/Component.hbs index 65c05d45..87505d1d 100644 --- a/pages/Component/Component.hbs +++ b/pages/Component/Component.hbs @@ -61,14 +61,32 @@
ID
{{ ID }}
-
Initial: Reduplicated
-
- {{#if reduplicated }}true{{else}}false{{/if}} - -
- -
Final: Concrete/Abstract
-
{{#if specificity }}{{ specificity }}{{else}}—{{/if}}
+ {{#if (is type 'initial') }} +
Initial: Reduplicated
+
+ {{#if reduplicated }}true{{else}}false{{/if}} + +
+ {{/if}} + + {{#if (is type 'final') }} + +
Final: Concrete/Abstract
+
{{#if specificity }}{{ specificity }}{{else}}—{{/if}}
+ +
Final: Primary +
+ {{#if primary }}true{{else}}false{{/if}} + +
+ +
Final: Secondary +
+ {{#if secondary }}true{{else}}false{{/if}} + +
+ + {{/if}}