diff options
| -rw-r--r-- | templates/journey.html.ep | 2 | ||||
| -rw-r--r-- | templates/landingpage.html.ep | 7 | ||||
| -rw-r--r-- | templates/legend.html.ep | 4 | 
3 files changed, 4 insertions, 9 deletions
| diff --git a/templates/journey.html.ep b/templates/journey.html.ep index c13da5f..c052190 100644 --- a/templates/journey.html.ep +++ b/templates/journey.html.ep @@ -269,7 +269,7 @@  	% }  	<div class="row">  		<div class="col s12 grey-text"> -			<i class="material-icons tiny" aria-hidden="true"><%= $journey->{is_iris} ? 'train' : 'directions' %></i> +			<i class="material-icons tiny" aria-hidden="true"><%= $journey->{is_hafas} ? 'directions' : 'train' %></i>  			%= $journey->{backend_name} || 'IRIS'  			#<%= $journey->{id} %>  		</div> diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep index 0ccb1ad..b5d1745 100644 --- a/templates/landingpage.html.ep +++ b/templates/landingpage.html.ep @@ -67,12 +67,7 @@  							</div>  						</div>  						<div class="card-action"> -							% if ($user->{backend_id}) { -								<a href="/account/select_backend?redirect_to=/" class="btn btn-flat"><i class="material-icons left" aria-hidden="true">directions</i><%= $user->{backend_name} %></a> -							% } -							% else { -								<a href="/account/select_backend?redirect_to=/" class="btn btn-flat"><i class="material-icons left" aria-hidden="true">train</i>IRIS</a> -							% } +							<a href="/account/select_backend?redirect_to=/" class="btn btn-flat"><i class="material-icons left" aria-hidden="true"><%= $user->{backend_hafas} ? 'directions' : 'train' %></i><%= $user->{backend_name} // 'IRIS' %></a>  							<button class="btn right waves-effect waves-light btn-flat" type="submit" name="action" value="departures">  								<i class="material-icons left" aria-hidden="true">send</i>  								Abfahrten diff --git a/templates/legend.html.ep b/templates/legend.html.ep index 73fded9..3dc113a 100644 --- a/templates/legend.html.ep +++ b/templates/legend.html.ep @@ -15,11 +15,11 @@  				</tr>  				<tr>  					<td><i class="material-icons">train</i></td> -					<td>Backend: DB IRIS. Bevorzugte Datenquelle für (mindestens teilweise) innerdeutsche Zugfahrten.</td> +					<td>Backend: Deutsche Bahn (bahn.de oder IRIS-TTS).</td>  				</tr>  				<tr>  					<td><i class="material-icons">directions</i></td> -					<td>Backend: DB HAFAS. Bevorzugte Datenquelle für Nahverkehr und vollständig außerdeutsche Zugfahrten. Weniger detailliert als IRIS.</td> +					<td>Backend: HAFAS.</td>  				</tr>  			</tbody>  		</table> | 
