Remove current station as destination

This commit is contained in:
clerie 2024-07-28 15:24:09 +02:00
parent 6524b08cf4
commit afee3b0c6f

View File

@ -169,6 +169,10 @@ async fn route_station_overview(
out.push_str("<ul>\n");
for (dest_station_id, dest_station) in state.stations.into_iter() {
if dest_station_id == station_id {
continue;
}
out.push_str(&format!("<li><a href=\"/station/{}/to/{}\">{}</a></li>\n", station_id, dest_station_id, dest_station.name));
}