Add footer to pages

This commit is contained in:
clerie 2024-07-28 15:30:06 +02:00
parent 864c94ea94
commit 0b793484e7

View File

@ -144,7 +144,9 @@ async fn route_index(
out.push_str(&format!("<li><a href=\"/station/{}\">{}</a></li>\n", id, station.name));
}
out.push_str("</ul></body></html>\n");
out.push_str("</ul>\n");
out.push_str("<p><small><a href=\"/\">Nur Ausstieg</a> | <a href=\"https://git.clerie.de/clerie/nurausstieg\">Source Code</a></small></p>\n");
out.push_str("</body></html>\n");
return Ok(Html(out));
}
@ -176,7 +178,9 @@ async fn route_station_overview(
out.push_str(&format!("<li><a href=\"/station/{}/to/{}\">{}</a></li>\n", station_id, dest_station_id, dest_station.name));
}
out.push_str("</ul></body></html>\n");
out.push_str("</ul>\n");
out.push_str("<p><small><a href=\"/\">Nur Ausstieg</a> | <a href=\"https://git.clerie.de/clerie/nurausstieg\">Source Code</a></small></p>\n");
out.push_str("</body></html>\n");
return Ok(Html(out));
}
@ -288,7 +292,9 @@ async fn route_station_to_dest_station(
}
}
out.push_str("</ul></body></html>\n");
out.push_str("</ul>\n");
out.push_str("<p><small><a href=\"/\">Nur Ausstieg</a> | <a href=\"https://git.clerie.de/clerie/nurausstieg\">Source Code</a></small></p>\n");
out.push_str("</body></html>\n");
return Ok(Html(out));