is handlebars else if instead of nesting ifs
This commit is contained in:
parent
473ec3a903
commit
01a9dcbbb8
1 changed files with 1 additions and 3 deletions
|
@ -15,8 +15,7 @@
|
||||||
{{#each (lookup config.i18n 'temporalUnitsAbbr') as |value key|}}
|
{{#each (lookup config.i18n 'temporalUnitsAbbr') as |value key|}}
|
||||||
<option value="{{key}}">{{value}}</option>
|
<option value="{{key}}">{{value}}</option>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{else}}
|
{{else if (eq unitType 'customTemporal')}}
|
||||||
{{#if (eq unitType 'customTemporal')}}
|
|
||||||
{{#each (lookup config.i18n 'customTemporalUnitsAbbr') as |value key|}}
|
{{#each (lookup config.i18n 'customTemporalUnitsAbbr') as |value key|}}
|
||||||
<option value="{{key}}">{{value}}</option>
|
<option value="{{key}}">{{value}}</option>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
@ -25,7 +24,6 @@
|
||||||
<option value="{{key}}">{{value}}</option>
|
<option value="{{key}}">{{value}}</option>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
|
||||||
{{/select}}
|
{{/select}}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue