proper placement of info msg
Some checks failed
CI/CD Pipeline / test (push) Successful in 5m12s
CI/CD Pipeline / deploy (push) Has been cancelled

This commit is contained in:
Philipp Hofer 2025-04-19 10:46:20 +02:00
parent fdcd3e8e80
commit 9b84307e35

View File

@ -672,6 +672,14 @@ async fn index(State(db): State<Arc<SqlitePool>>, session: Session) -> Markup {
a href="/admin/route" { "Route" }
" sie zugewiesen sind."
}
@if teams.is_empty() {
article class="warning" {
"Es gibt noch keine Teams. "
@if !routes.is_empty() {
"Das kannst du hier ändern ⤵️"
}
}
}
article {
h2 { "Neues Team" }
@if routes.is_empty() {
@ -724,14 +732,6 @@ async fn index(State(db): State<Arc<SqlitePool>>, session: Session) -> Markup {
}
}
}
@if teams.is_empty() {
article class="warning" {
"Es gibt noch keine Teams. "
@if !routes.is_empty() {
"Das kannst du hier ändern ⤵️"
}
}
}
};
page(content, session, false).await
}