diff options
| -rw-r--r-- | templates/_connections.html.ep | 2 | ||||
| -rw-r--r-- | templates/_connections_hafas.html.ep | 2 | ||||
| -rw-r--r-- | templates/_departures_hafas.html.ep | 2 | ||||
| -rw-r--r-- | templates/_departures_iris.html.ep | 2 | 
4 files changed, 4 insertions, 4 deletions
| diff --git a/templates/_connections.html.ep b/templates/_connections.html.ep index 2a89d9b..97c53e0 100644 --- a/templates/_connections.html.ep +++ b/templates/_connections.html.ep @@ -36,7 +36,7 @@  				% if ($train->platform) {  					<span>Gleis <%= $train->platform %></span>  				% } -				<span class="dep-line <%= (split(/ /, $train->line))[0] %>"> +				<span class="dep-line <%= $train->type // q{} %>">  					%= $train->line  				</span>  			</span> diff --git a/templates/_connections_hafas.html.ep b/templates/_connections_hafas.html.ep index 7a7b656..d2b35ce 100644 --- a/templates/_connections_hafas.html.ep +++ b/templates/_connections_hafas.html.ep @@ -36,7 +36,7 @@  				% if ($train->platform) {  					<span>Gleis <%= $train->platform %></span>  				% } -				<span class="dep-line <%= (split(/ /, $train->line))[0] %>"> +				<span class="dep-line <%= $train->type // q{} %>">  					%= $train->line  				</span>  			</span> diff --git a/templates/_departures_hafas.html.ep b/templates/_departures_hafas.html.ep index 369f5f4..9e4d7a4 100644 --- a/templates/_departures_hafas.html.ep +++ b/templates/_departures_hafas.html.ep @@ -31,7 +31,7 @@  				<i class="material-icons" aria-label="Keine Echtzeitdaten vorhanden" style="font-size: 16px;">gps_off</i>  			% }  		</a> -		<span class="dep-line <%= (split(/ /, $result->line))[0] %>"> +		<span class="dep-line <%= $result->type // q{} %>">  			%= $result->line  		</span>  		<span class="dep-dest"> diff --git a/templates/_departures_iris.html.ep b/templates/_departures_iris.html.ep index 56b5820..d96fd37 100644 --- a/templates/_departures_iris.html.ep +++ b/templates/_departures_iris.html.ep @@ -36,7 +36,7 @@  				<i class="material-icons" aria-label="Keine Echtzeitdaten vorhanden" style="font-size: 16px;">gps_off</i>  			% }  			</a> -			<span class="dep-line <%= (split(/ /, $result->line))[0] %>"> +			<span class="dep-line <%= $result->type // q{} %>">  				%= $result->line  			</span>  			<span class="dep-dest"> | 
