Remove current station as destination
This commit is contained in:
parent
6524b08cf4
commit
afee3b0c6f
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user