Browse Source

cycleway_width: improve popup body

cycleway
parent
commit
f875570c47
  1. 11
      cycleway_width.yaml

11
cycleway_width.yaml

@ -185,8 +185,10 @@ feature:
{% endif %}
{% if leftCycle %}
<li>{{ keyTrans('cycleway:left') }}:<ul>
<li>{{ keyTrans('cycleway') }}: {{ tagTrans('cycleway', attribute(tags, 'cycleway:left')|default(attribute(tags, 'cycleway:both'))) }}</li>
<li>
{{ keyTrans('cycleway:left:width') }}:
{{ keyTrans('cycleway:width') }}:
{% if not leftWidth %}
{{ trans('unknown') }}
{% elseif attribute(tags, 'cycleway:left:width')|default(attribute(tags, 'cycleway:both:width')) matches "/(m|')$/" %}
@ -195,10 +197,14 @@ feature:
{{ leftWidth }}m
{% endif %}
</li>
</ul></li>
{% endif %}
{% if rightCycle %}
<li>{{ keyTrans('cycleway:right') }}:<ul>
<li>{{ keyTrans('cycleway') }}: {{ tagTrans('cycleway', attribute(tags, 'cycleway:right')|default(attribute(tags, 'cycleway:both'))) }}</li>
<li>
{{ keyTrans('cycleway:right:width') }}:
{{ keyTrans('cycleway:width') }}:
{% if not rightWidth %}
{{ trans('unknown') }}
{% elseif attribute(tags, 'cycleway:right:width')|default(attribute(tags, 'cycleway:both:width')) matches "/(m|')$/" %}
@ -207,6 +213,7 @@ feature:
{{ rightWidth }}m
{% endif %}
</li>
</ul></li>
{% endif %}
</ul>
info: |

Loading…
Cancel
Save