{% set lineColor = 'aaa' %}
{% if stopAreaLine.color is defined and stopAreaLine.color is not empty %}
{% set lineColor = stopAreaLine.color %}
{% endif %}
{% if stopAreaLine.sName is empty %}
{% set sName = "-" %}
{% else %}
{% set sName = stopAreaLine.sName %}
{% endif %}
<a data-toggle="is-tooltip" title="{{ 'schedule.see_line_timesheet_new_format'|trans({ 'mode': stopAreaLine.modeText, 'lineIdent': stopAreaLine.sName })|raw }}"
class="is-Schedule-StopPoint-Line-Link is-Line is-line-directions-switch"
data-line-id="{{ stopAreaLine.id }}"
data-line-short-name="{{ sName }}"
data-line-sub-network-name="{{ stopAreaLine.subNetwork.name }}"
data-mode-text="{{ stopAreaLine.modeText }}"
data-direction="OUTWARD"
onclick="$(document).trigger(TrackingManager.event.track, {event: 'stoptolane'});"
>
{% if groupBySubNetworks is defined and true == groupBySubNetworks %}
{% set disruption = 0 %}
{% if lines is defined and lines is not empty %}
{% for line in lines %}
{% for lineInfos in line.line %}
{% if lineInfos.id == stopAreaLine.id %}
{% set disruption = 1 %}
{% include "modules/search-widget/schedule/includes/line.html.twig" with { 'line': lineInfos , 'currentDisruptions': disruptions.currentDisruptions, 'showDisruptionBadge' : true } %}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
{% if disruption == 0 %}
{% include "modules/search-widget/schedule/includes/line.html.twig" with { 'line': stopAreaLine , 'currentDisruptions': disruptions.currentDisruptions, 'showDisruptionBadge' : true } %}
{% endif %}
{% else %}
{% set disruption = 0 %}
{% if lines is defined and lines is not empty %}
{% for line in lines %}
{% set line = line.line %}
{% if line.id == stopAreaLine.id %}
{% set disruption = 1 %}
{% include "modules/search-widget/schedule/includes/line.html.twig" with { 'line': line} %}
{% endif %}
{% endfor %}
{% endif %}
{% if disruption == 0 %}
{% include "modules/search-widget/schedule/includes/line.html.twig" with { 'line': stopAreaLine} %}
{% endif %}
{% endif %}
{% if groupBySubNetworks is defined and true == groupBySubNetworks %}
<span>{{ stopAreaLine.lName }}</span>
{% else %}
{{ stopAreaLine.subNetwork.name }}
{% endif %}
</a>