link to /route; Fixes #27

This commit is contained in:
Philipp Hofer 2025-04-14 15:02:45 +02:00
parent 786c122dcd
commit da33c0411d

View File

@ -517,10 +517,12 @@ async fn index(State(db): State<Arc<SqlitePool>>, session: Session) -> Markup {
}
}
@if station.routes(&db).await.is_empty() {
a href="/admin/route" {
em data-tooltip=(t!("station_warning_not_assigned_route")) {
"⚠️ "
}
}
}
a href=(format!("/admin/station/{}", station.id)){
(station.name)
}