Allow special pitchnames for pitch-sport combinations #9

Merged
plepe merged 1 commits from Hufkratzer/main:pitchnames into master 5 years ago
  1. 12
      leisure.json

12
leisure.json

@ -28,9 +28,17 @@
},
"feature": {
"description": [
"{{ tagTrans('leisure', tags.leisure) }}",
"{% if tags.leisure == 'pitch' and tags.sport %}",
"- {{ tagTransList('sport', tags.sport) }}",
" {% set pitchName = tagTrans('leisure', 'pitch sport=' ~ tags.sport) %}",
"{% endif %}",
"",
"{% if pitchName and pitchName != tags.sport %}",
" {{ pitchName }} ",
"{% else %}",
" {{ tagTrans('leisure', tags.leisure) }}",
" {% if tags.leisure == 'pitch' and tags.sport %}",
" - {{ tagTransList('sport', tags.sport) }}",
" {% endif %}",
"{% endif %}"
]
}

Loading…
Cancel
Save