is handlebars else if instead of nesting ifs

This commit is contained in:
Johannes Loher 2021-05-13 20:44:21 +02:00
parent 473ec3a903
commit 01a9dcbbb8

View file

@ -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>