templates/modules/search-widget/traffic-infos/includes/disruption-details.html.twig line 1

Open in your IDE?
  1. {% if currents is defined %}
  2. {% for disruption in currents %}
  3. {% set title = disruption.messages[0].translations[0].title %}
  4. {% set content = disruption.messages[0].translations[0].content %}
  5. {% for message in disruption.messages %}
  6. {% for translation in message.translations %}
  7. {% set locale = translation.locale|split('-') %}
  8. {% if app.request.get('_locale') == locale[0] %}
  9. {% set title = translation.title %}
  10. {% set content = translation.content %}
  11. {% endif %}
  12. {% endfor %}
  13. {% endfor %}
  14. {% if line is defined and disruption.impactedEntities.lines is defined %}
  15. {% for currentLine in disruption.impactedEntities.lines %}
  16. {% if currentLine.id == line.id %}
  17. {% include 'modules/search-widget/traffic-infos/includes/item-details.html.twig' %}
  18. {% endif %}
  19. {% endfor %}
  20. {% else %}
  21. {% include 'modules/search-widget/traffic-infos/includes/item-details.html.twig' %}
  22. {% endif %}
  23. {% endfor %}
  24. {% else %}
  25. {% include 'modules/search-widget/traffic-infos/includes/item-details.html.twig' %}
  26. {% endif %}