diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/departure_list.html | 6 | ||||
| -rw-r--r-- | templates/landing_page.html | 3 | ||||
| -rw-r--r-- | templates/navbar.html | 17 | ||||
| -rw-r--r-- | templates/stops.html | 1 | 
4 files changed, 26 insertions, 1 deletions
| diff --git a/templates/departure_list.html b/templates/departure_list.html index a82e7c3..dea886c 100644 --- a/templates/departure_list.html +++ b/templates/departure_list.html @@ -5,8 +5,14 @@  	{% include 'header.html' %}  </head>  <body> + +{% include 'navbar.html' %} +  <div class="container">  	<div class="content"> +		{% if not departures %} +			<div class="globalnote">Keine Abfahrten innerhalb der nächsten zwei Stunden</div> +		{% endif %}  		<ul class="departures">  			{% for departure in departures %}  				<li class="{{ departure.classes }}" onclick="location.href='https://dbf.finalrewind.org/map/{{ departure.tripId }}/0';"> diff --git a/templates/landing_page.html b/templates/landing_page.html index c89da47..c5a04fd 100644 --- a/templates/landing_page.html +++ b/templates/landing_page.html @@ -6,14 +6,15 @@  	<script src="/static/v0/js/geolocation.js"></script>  </head>  <body> +{% include 'navbar.html' %}  <div class="container">  	<div class="content">  		<div class="geolocation">  			<button id="geolocationsearch">Haltestellen in der Umgebung suchen</button>  		</div>  		<form action="/find/stop"> +			<label for="name">Haltestelle:</label>  			<input id="name" name="name" required type="text"> -			<label for="name">Manuelle Eingabe</label>  			<button class="btn waves-effect waves-light btn-flat" type="submit" name="action" value="departures">  				Suchen  			</button> diff --git a/templates/navbar.html b/templates/navbar.html new file mode 100644 index 0000000..0b2908e --- /dev/null +++ b/templates/navbar.html @@ -0,0 +1,17 @@ +<div class="navbar-fixed"> +	<nav style="color: #ffffff; background-color: #00838f;"> +		<div class="container"> +			{% if nav_link %} +				<a class="main" href="{{ nav_link }}">{{ title }}</a> +			{% else %} +				<span class="main">{{ title }}</span> +			{% endif %} +			<ul id="nav-mobile" style="float: right;"> +				<li class="waves-effect waves-light"> +					<a onClick="javascript:toggleTheme()"><i class="material-icons" aria-label="Farbschema invertieren">invert_colors</i></a> +				</li> +				<li><a href="/"><i class="material-icons" aria-label="Stationen in der Umgebung suchen">my_location</i></a></li> +			</ul> +		</div> +	</nav> +</div> diff --git a/templates/stops.html b/templates/stops.html index affac69..5c47014 100644 --- a/templates/stops.html +++ b/templates/stops.html @@ -5,6 +5,7 @@  	{% include 'header.html' %}  </head>  <body> +{% include 'navbar.html' %}  <div class="container">  	<div class="content">  		<ul class="stops"> | 
