Browse Source

shop: improve code style

master
parent
commit
76a2510897
  1. 15
      shop.yaml

15
shop.yaml

@ -280,14 +280,21 @@ const:
- denim - denim
filter: filter:
shop: shop:
name: '{{ trans(''filter:type'') }}' name: |-
{{ trans("filter:type") }}
type: select type: select
show_default: 'true' show_default: true
values: '{% set list = [] %}{% for k, v in const.shops %}<option value="{{ k }}">{% set list = list|merge([ k ]) %}{{ tagTrans(''shop'', k) }}</option>{% endfor %}<option weight=''1'' value=''other'' query=''nwr[shop][shop!~"^(|.*;)({{ list|join(''|'') }})(|;.*)$"]''>{{ trans(''other'') }}</option>' values: |-
{% set list = [] %}
{% for k, v in const.shops %}
<option value="{{ k }}">{% set list = list|merge([ k ]) %}{{ tagTrans("shop", k) }}</option>
{% endfor %}
<option weight="1" value="other" query="nwr[shop][shop!~"^(|.*;)({{ list|join("|") }})(|;.*)$"]">{{ trans("other") }}</option>
sort: natsort sort: natsort
op: has op: has
clothes: clothes:
name: '{{ keyTrans(''clothes'') }}' name: |-
{{ keyTrans("clothes") }}
type: select type: select
values: |- values: |-
{% set list = [] %} {% set list = [] %}

|||||||
100:0
Loading…
Cancel
Save