Compare commits

...

2 Commits

Author SHA1 Message Date
7f2e0febf3 Add doctype 2024-07-28 15:42:47 +02:00
b521291863 Fix head tag 2024-07-28 15:41:20 +02:00

View File

@ -134,8 +134,9 @@ async fn route_index(
) -> Result<Html<String>, String> {
let mut out = String::new();
out.push_str("<!DOCTYPE html>\n");
out.push_str("<html>\n");
out.push_str("<header><title>Nur Ausstieg</title></header>\n");
out.push_str("<head><title>Nur Ausstieg</title></head>\n");
out.push_str("<body>\n");
out.push_str("<h1>Nur ausstieg</h1>\n");
out.push_str("<p>Es gibt Züge die innerhalb Berlins fahren, aber nicht im Fahrplan Routing der DB auftauchen, weil sie entweder in Berlin enden oder in Berlin beginnen.<br>\n");
@ -168,8 +169,9 @@ async fn route_station_overview(
let mut out = String::new();
out.push_str("<!DOCTYPE html>\n");
out.push_str("<html>\n");
out.push_str(&format!("<header><title>Ziele für {} | Nur Ausstieg</title></header>\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(&format!("<h1>Ziele für {}</h1>\n", station_properties.name));
out.push_str("<ul>\n");
@ -235,8 +237,9 @@ async fn route_station_to_dest_station(
let mut out = String::new();
out.push_str("<!DOCTYPE html>\n");
out.push_str("<html>\n");
out.push_str(&format!("<header><title>Abfahrten für {} nach {} | Nur Ausstieg</title></header>\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(&format!("<h1>Abfahrten für {} nach {}</h1>\n", station_properties.name, dest_station_properties.name));