You are here

hms-natural-language.html.twig in HMS Field 8

{% for key,formatted_value in formatted_values %}
<span class="hms__{{ labels[key]['label multiple'] }}">{{- formatted_value -}}
  {% if (loop.index <= loop.length-2) %}
    {{- separator -}}
  {% endif %}
  {% if (loop.index == loop.length-1) %}
    {{- last_separator -}}
  {% endif %}
</span>
{% endfor %}

File

templates/hms-natural-language.html.twig
View source
  1. {% for key,formatted_value in formatted_values %}
  2. <span class="hms__{{ labels[key]['label multiple'] }}">{{- formatted_value -}}
  3. {% if (loop.index <= loop.length-2) %}
  4. {{- separator -}}
  5. {% endif %}
  6. {% if (loop.index == loop.length-1) %}
  7. {{- last_separator -}}
  8. {% endif %}
  9. </span>
  10. {% endfor %}