Add doctype
This commit is contained in:
parent
b521291863
commit
7f2e0febf3
@ -134,6 +134,7 @@ async fn route_index(
|
|||||||
) -> Result<Html<String>, String> {
|
) -> Result<Html<String>, String> {
|
||||||
let mut out = String::new();
|
let mut out = String::new();
|
||||||
|
|
||||||
|
out.push_str("<!DOCTYPE html>\n");
|
||||||
out.push_str("<html>\n");
|
out.push_str("<html>\n");
|
||||||
out.push_str("<head><title>Nur Ausstieg</title></head>\n");
|
out.push_str("<head><title>Nur Ausstieg</title></head>\n");
|
||||||
out.push_str("<body>\n");
|
out.push_str("<body>\n");
|
||||||
@ -168,6 +169,7 @@ async fn route_station_overview(
|
|||||||
|
|
||||||
let mut out = String::new();
|
let mut out = String::new();
|
||||||
|
|
||||||
|
out.push_str("<!DOCTYPE html>\n");
|
||||||
out.push_str("<html>\n");
|
out.push_str("<html>\n");
|
||||||
out.push_str(&format!("<head><title>Ziele für {} | Nur Ausstieg</title></head>\n", station_properties.name));
|
out.push_str(&format!("<head><title>Ziele für {} | Nur Ausstieg</title></head>\n", station_properties.name));
|
||||||
out.push_str("<body>\n");
|
out.push_str("<body>\n");
|
||||||
@ -235,6 +237,7 @@ async fn route_station_to_dest_station(
|
|||||||
|
|
||||||
let mut out = String::new();
|
let mut out = String::new();
|
||||||
|
|
||||||
|
out.push_str("<!DOCTYPE html>\n");
|
||||||
out.push_str("<html>\n");
|
out.push_str("<html>\n");
|
||||||
out.push_str(&format!("<head><title>Abfahrten für {} nach {} | Nur Ausstieg</title></head>\n", station_properties.name, dest_station_properties.name));
|
out.push_str(&format!("<head><title>Abfahrten für {} nach {} | Nur Ausstieg</title></head>\n", station_properties.name, dest_station_properties.name));
|
||||||
out.push_str("<body>\n");
|
out.push_str("<body>\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user